forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject potential multiple ID attributes (Was: svn commit: r306554)
Date Fri, 14 Oct 2005 03:14:47 GMT
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

Mime
View raw message