Subject: Re: [xsl] XSL to generate required output From: Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx> Date: Mon, 12 Dec 2005 17:36:21 +0100 |
Hi, David Carlisle wrote: > Actually it says position less than the numeric value of the string > value of a child element called poscurrent which may or may not be > false, depending on that element. Well, didn't see (or not see) the missing $ myself. > But even if it said > > <xsl:variable name="poscurrent" select="position()"/> > <xsl:copy-of select="following-sibling::Row[not(Cell='##')][position() < $poscurrent]"/> > > It wouldn't necessarily always be false (although it would probably > never be the required test). The current nodde list and the node list > selected by following-sibling::Row[not(Cell='##')] are certainly > different lists and so the meanings of position() in the two expressions > quoted are more or less unrelated, and comparing then may be either true > or false. Yes, you are of course right. A following-sibling is a completely new nodeset, and has no bearing on the current one. I read it as being two of the same. This would only work, then, in a very limited amount of cases. Thank you. Ragulf Pickaxe :-)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL to generate required , David Carlisle | Thread | RE: [xsl] XSL to generate required , Michael Kay |
Re: [xsl] Sorting the complete xml , David Carlisle | Date | Re: [xsl] XSL to generate required , Ragulf Pickaxe |
Month |