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

Reply via email to