Subject: [xsl] Difficulty over understanding preceding-sibling From: "Joe Fawcett" <joefawcett@xxxxxxxxxxx> Date: Sat, 3 Sep 2005 00:48:50 +0100 |
XSLT: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="groupSize" select="3" /> <xsl:template match="/"> <new> <xsl:call-template name="groupItems"> <xsl:with-param name="items" select="root/item" /> </xsl:call-template> </new> </xsl:template>
Result (msxml version 4): <new> <group itemCount="10"> <newItem id="1" preceding-sibling-count="0"/> <newItem id="2"/> <newItem id="3"/> </group> <group itemCount="7"> <newItem id="4" preceding-sibling-count="3"/> <newItem id="5"/> <newItem id="6"/> </group> <group itemCount="4"> <newItem id="7" preceding-sibling-count="6"/> <newItem id="8"/> <newItem id="9"/> </group> <group itemCount="1"> <newItem id="10" preceding-sibling-count="9"/> </group> </new>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Terminate <xsl:for-each>, aaron apigo | Thread | Re: [xsl] Difficulty over understan, Dimitre Novatchev |
Re: [xsl] XSLT on the server side, Dimitre Novatchev | Date | Re: [xsl] Difficulty over understan, Dimitre Novatchev |
Month |