|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: don't get variables
Alexandra Morgan wrote: > > I don't understand how one is supposed to access the value of variables. Why does this not put A in the result: > > <xsl:template match="/"> > <xsl:variable name="test" select="A"/> > <xsl:value-of select="$test" /> > </xsl:template> The problem isn't with accessing the variable's value: it's with initializing it. select="A" is looking for <A> _elements_ (and not finding any) to get the _string_ 'A', you need to say: <xsl:variable name="test" select="'A'"/> -- cheers phil 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








