This is the mail archive of the xsl-list@mulberrytech.com mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
In the stylesheet below, can "$startnode" be used for node
matching, instead of having to type in the whole string ( TEST/TEST1/TEST2 )
everytime ?
<xsl:variable
name="startnode">
<xsl:text>TEST/TEST1/TEST2</xsl:text> </xsl:variable> <xsl:template match="/">
<html>
<body> <xsl:for-each select="$startnode"> <xsl:apply-templates select="."/><br/> </xsl:for-each> </body> </html> </xsl:template>
<xsl:template
match="$startnode">
<xsl:value-of select="@CLASSNAME"/> </xsl:template> Thanks
Pady
|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |