This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Don't understand it, ...
- To: xsl-list at mulberrytech dot com
- Subject: RE: Don't understand it, ...
- From: sara dot mitchell at ps dot ge dot com
- Date: Fri, 3 Nov 2000 13:20:19 -0400 (EST)
- Reply-To: xsl-list at mulberrytech dot com
I think it's the 'name' usage. You need the function, so a test
more like:
<xsl:when test="name() = 'ELEMENTA'" />
which translates to "when the name of the current node is ELEMENTA...
Sara
> -----Original Message-----
> From: Rainer.Jung@prosieben.de [mailto:Rainer.Jung@prosieben.de]
> Sent: Thursday, November 02, 2000 1:20 PM
> To: xsl-list@mulberrytech.com
> Subject: Don't understand it, ...
>
>
> Hi everyone!
>
> I am using
>
> <xsl:template match="*">
> <xsl:choose>
> <xsl:when test="self::name = 'ELEMENTA'" />
> <xsl:when test="self::name = 'ELEMENTB'" />
> <xsl:otherwise>
> <xsl:copy />
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
>
> to make a copy of a XML-File just without the elements
> ELEMENTA and ELEMENTB.
> Well, i thought, it worked sometime, but it seems, it
> never worked. What am i doing wrong!?
>
> Greetings,
> Rainer
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list