Re: [Fwd: Merging SVG and XML with XSL Transformation?]

Darya Said-Akbari <darya_akbari@yahoo.com> writes:

> As you mentioned, I also want to maintain the
> attributes in infile.svg. However here you can see
> that this is not the case.
>
> Do you have an idea?

Ah, er, yes. My mistake:

<xsl:template match="svg:text[.='anchorA']">
  <svg:text>
   <xsl:copy-of select="@*"/>
   <xsl:value-of
     select="document('text.xml')/texts/txt[@id='anchorA']"/></svg:text>
  </xsl:template>
</xsl:stylesheet>

Attributes should be created after an element.

Max.

Received on Tuesday, 18 June 2002 09:39:00 UTC