forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ferdinand Soethe <>
Subject Re: Error transforming Table IDs
Date Mon, 25 Jul 2005 13:44:42 GMT

Looks like an oversight. When (in file

<xsl:template match="table">
    <xsl:apply-templates select="@id"/>
    <table cellpadding="4" cellspacing="1" class="ForrestTable">
      <xsl:copy-of select="@cellspacing | @cellpadding | @border |
      @class | @bgcolor"/>

id is used to apply a templates that creates the local anchor (to make
ids addressable with local anchors) the id-attribute is 'used up' in
the process instead of also being copied over in

<xsl:copy-of select="@cellspacing | @cellpadding | @border | @class | @bgcolor"/>

Adding @id to the list of copied attributes fixes the problem.

<xsl:copy-of select="@cellspacing | @cellpadding | @border | @class | @bgcolor |@id"/>

In my view this fix should be applied to all elements that use 'up id' in
this way. Any reason not to do that?

Ferdinand Soethe

View raw message