|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] variable nodelist travarse how??
I have a variable declaerd as:
<xsl:variable name="varNodepkli">
<xsl:for-each select="$abc"> <xsl:element name="pkli">
<xsl:attribute name="pkli_oid">
<xsl:value-of select="@pkli_oid" />
</xsl:attribute> <xsl:attribute name="pkli_ositem">
<xsl:value-of select="@pkli_ositem" />
</xsl:attribute> <xsl:attribute name="pkli_clsz">
<xsl:value-of select="@pkli_clsz" />
</xsl:attribute> <xsl:attribute name="pkli_colr">
<xsl:value-of select="@pkli_colr" />
</xsl:attribute> <xsl:attribute name="pkli_size">
<xsl:value-of select="@pkli_size" />
</xsl:attribute>
Then i called a template as: <xsl:call-template name="pkliAdd">
<xsl:with-param name="pk" select="$varNodepkli"/>
</xsl:call-template>The template needs to travarse by recursion all the pkli nodes in the variable. So i tried <xsl:template name="pkliAdd"> <xsl:param name="pk"/> <xsl:choose> <xsl:when test="$pk"> <xsl:element name="pkli"> <xsl:attribute name="pkli_oid"> <xsl:value-of select="msxsl:node-set($pk)/pkli/@pkli_oid" /> </xsl:attribute> </xsl:element> <xsl:call-template name="pkliAdd">
<xsl:with-param name="pk" select="following-sibling::$pk"/>
</xsl:call-template></xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> </xsl:template> It seems that i can access the value of pk by "msxsl:node-set($pk)/pkli/@pkli_oid" in this manner but cant find way to call the next sibling. Please can anybody help me with this? _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








