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: Don't understand it, ...


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]