|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Variables
Mengel Andre (FV/SLM) *
the variable concept is complex in xslt, which can refer to a string ,a number or a tree fragment.<xsl:variable name="n">2</xsl:variable> will assign a tree fragment to the variable "n". The tree has a specified text node child with "2" as value.
in a word,here "n" reprensents a tree not a number.
在 2001-05-17 13:04:00 您写道:
>Dear all,
>
>Could someone explain me the following example of the W3C specification
>
><xsl:variable name="n">2</xsl:variable>
>...
><xsl:value-of select="item[$n]"/>
>
>This will output the value of the first item element, because the variable n
>will be bound to a result tree fragment, not a number.
>(See chapter 11.2)
>
>What is the reason for outputing the value of only the first item element ?
>
>Best regards
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Best regard
HeHangjun
sameulhe@xxxxxxx
hehangjun@xxxxxxxx
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








