[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:variable question
hi everyone here are two xsl files : <xsl:template match="/"> <xsl:variable name="mode">1</xsl:variable> ...... </xsl:template> <xsl:template name="dosomething"> <xsl:if test="$mode='1'"> ..... </xsl:if> ..... </template> ------------------------------------ <xsl:template match="/"> <xsl:variable name="mode" select='1'/> ...... </xsl:template> <xsl:template name="dosomething"> <xsl:if test="$mode='1'"> ..... </xsl:if> ..... </template> why the first one does not work, but the second one works. am i doing anything wrong in the first xsl? thanks Long 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
|