|
Subject: RE: Don't understand it, ... From: sara.mitchell@xxxxxxxxx Date: Fri, 3 Nov 2000 13:20:19 -0400 (EST) |
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@xxxxxxxxxxxx [mailto:Rainer.Jung@xxxxxxxxxxxx]
> Sent: Thursday, November 02, 2000 1:20 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Don't understand it, ..., Rainer . Jung | Thread | RE: Don't understand it, ..., Kay Michael |
| Copy vs copy-of (was: How to delete, Eliot, Topher | Date | Re: Paging using XSLT, Steve Muench |
| Month |