|
Subject: RE: another simple problem... From: "Nick-Lawson.org" <nick@xxxxxxxxxxxxxxx> Date: Tue, 17 Oct 2000 05:07:54 +0100 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| another simple problem..., B. DEXHEIMER | Thread | XSLT Programmer's Reference (was: x, Eliot, Topher |
| RE: Xalan namespace problem, Bruce Oblander | Date | Re: Exact title & ISBN of Michael K, Lee Goddard |
| Month |