xsl-list
[Top] [All Lists]

Re: copying problem

2004-03-15 00:55:19
David Carlisle wrote:

<xsl:template match="root">
<root>
<xsl:copy-of select="A[position()!=last()]|B[following-sibling::A]"/>
</root>
</xsl:template>


Would that be :
|B[count(following-sibling::A) = 1]
cuz the following-sibling identifies all B nodes which have A nodes coming after them in the list? Which would be all of them?

XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>