This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Exclude Attributes from select?
- To: xsl-list at mulberrytech dot com
- Subject: Re: Exclude Attributes from select?
- From: David Delgranche <compagnon dot ball004 at rd dot francetelecom dot fr>
- Date: Fri, 13 Oct 2000 14:48:41 +0200
- References: <4C45858D148AD411A8B800A024B36E50F2716E@granada.fhm.de>
- Reply-To: xsl-list at mulberrytech dot com
Rainer.Jung@prosieben.de wrote:
> Hi!
>
> If i use <xsl:copy-of select="@*">, is there a possibility,
> to exclude some attributes?
> I took a look at XPATH, and the XSLT-Documentation, I just
> found OR-expressions like select="@attrib1|@attrib2".
> My idea would be, to use something like
> <xsl:for-each select="@*">
> <xsl:choose>
> <xsl:when test"self = 'attrib1'"/>
> <xsl:otherwise>
> <xsl:copy-of select="self" />
> </xsl:otherwise>
> </xsl:choose>
> </xsl:for-each>
>
> Is there nothing like select="!META&!TITLE"
> (or select="!(META|TITLE)")?
>
> Grüße,
> Rainer
> --
> *ProSieben Digital Media
> Rainer Jung - Technik/Webmaster
> Medienallee 7 - 85774 Unterföhring
> Telefon: ++49 (89) 9507-8428
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
If you want to use all attributes but some, I think you can write:
<xsl:copy-of select="@*!=('attrib1','attrib2',...).
Try this and let me know if it solves your problem
Bye
David
David DELGRANCHE
SILICOM Region Ouest
FRANCE TELECOM R&D
22 LANNION
FRANCE
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list