W3C home > Mailing lists > Public > www-svg@w3.org > June 2002

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

From: Max Froumentin <mf@w3.org>
Date: Tue, 18 Jun 2002 15:38:33 +0200
To: Darya Said-Akbari <darya_akbari@yahoo.com>
Cc: batik-users@xml.apache.org, www-svg@w3.org, Vincent Hardy <vincent.hardy@sun.com>
Message-ID: <86elf4906e.fsf@sophia.inria.fr>

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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:22 GMT