You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by David Crossley <cr...@apache.org> on 2005/10/14 05:14:47 UTC
potential multiple ID attributes (Was: svn commit: r306554)
Renaming the thread to hopefully remember to ask Ferdinand
when he returns.
-David
Ross Gardler wrote:
[ snip]
>
> >> <!-- FIXME: i18n Transformer here -->
> >>@@ -192,6 +192,7 @@
> >> <xsl:template match="p[@xml:space='preserve']">
> >> <xsl:apply-templates select="@id"/>
> >> <div class="pre">
> >>+ <xsl:copy-of select="@id"/>
> >> <xsl:apply-templates/>
> >> </div>
> >> </xsl:template>
>
> There are a few of changes like this. Won't this result in multiple @id
> attributes if one is supplied in the orgiinal XML?
>
> >> <div align="center">
> >>+ <xsl:copy-of select="@id"/>
> >> <img class="figure">
> >>- <xsl:copy-of select="@height | @width | @src | @alt"/>
> >>+ <xsl:copy-of select="@height | @width | @src | @alt | @id"/>
> >> </img>
> >> </div>
> >> </xsl:template>
>
> I'm pretty sure this one will result in a duplication of @id values,
> once from the fist <xsl:copy-of > and once from the second. Sure they
> will be on different elements, but the result will be two elements with
> the same ID.
>
> Ross