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]

RE: another simple problem...


If you want $file to be the admin _node_:

    <xsl:variable name="file" select="."/>

and if you want $file to be the "admin" _string_:

    <xsl:variable name="file" select="name()"/>

Nick

> -----Original Message-----
> From: owner-xsl-list@mulberrytech.com
> [mailto:owner-xsl-list@mulberrytech.com]On Behalf Of B. DEXHEIMER
> Sent: 16 October 2000 17:02
> To: xsl-list@mulberrytech.com
> Subject: another simple problem...
> 
> 
> Hi People !
> 
> I have the following piece of code :
> 
> <xsl:variable name="file">out</xsl:variable>
> ...
> <xsl:template match="ADMIN">
>   <xsl:variable name="file">
>     /* what I want to do is : file <- "ADMIN", ie the xsl variable
> "file" receives "ADMIN", the node matching
>     element, as a new value instead of "out" but I do not want to write
> "ADMIN" explicitely... the new value must be referred dynamically to the
> upper node mentionned in the match instruction*/
>   </xsl:variable>
> 
> How could I do that ?
> 
> Thanx for your Help!
> 
> BeNjamin.
> 
> 
>  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]