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]

AW: Variables


Dear all,
Thanx for your contributions refering my
question.

Best regards 

Andr¨¦



> -----Urspr¨¹ngliche Nachricht-----
> Von: HeHangjun [mailto:sameulhe@163.net]
> Gesendet: Donnerstag, 17. Mai 2001 19:49
> An: xsl-list@lists.mulberrytech.com
> Betreff: Re: [xsl] 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@163.net
> 			hehangjun@sina.com
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]