|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@xxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of B. DEXHEIMER
> Sent: 16 October 2000 17:02
> To: xsl-list@xxxxxxxxxxxxxxxx
> 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
|
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








