[Home] [By Thread] [By Date] [Recent Entries]
At 06:10 PM 3/5/2004, David C wrote:
> printed from column1 instead of column0. use position() -1 instead of position(), but you are making it far more complicated than it need be In this case, won't the position always be 1, since only a single node is ever selected by the apply-templates? Which may be the bug the OP is complaining of....? could just be <xsl:apply-templates select="row"/> Hear, hear. Also, no one has issued yet (in this thread) the usual warnings about position() including in its count any neighboring text nodes, etc. These won't affect David's particular example since he has select="row", but in the default case of apply-templates (which selects child::node()), the position count will include unstripped whitespace-only text nodes. It's a reason to be careful of position() ... "the position of the current node within the current node list" is mysterious for those who haven't grasped yet what that node, and that list, actually are. Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



