forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <rgard...@apache.org>
Subject Re: Error transforming Table IDs
Date Fri, 29 Jul 2005 16:40:31 GMT
Ferdinand Soethe wrote:

...

> Attempted Solution:
> 
> 1  <xsl:template match="node()|@*" priority="-1">
>      <!-- id processing will create its own a-element so processing has to
>           happen outside the copied element
>      -->
> 2   <xsl:apply-templates select="@id"/>
> 3    <xsl:copy>
> 4      <xsl:apply-templates select="@* and ???"/>
> 5       <xsl:attribute name="id">{id}</xsl:attribute>
>        <xsl:apply-templates/>
>      </xsl:copy>
>    </xsl:template>
> 

...

> Line 4 should now exclude @id but I'm not sure how to express that in
>        X-Path if I want to process all attributes but id? Can someone
>        pls help?

Something like the following should do it:

<xsl:apply-tempaltes select="@*[name(.) !- 'id']/>

Ross

Mime
View raw message