xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Froumentin ...@w3.org>
Subject Re: [Fwd: Merging SVG and XML with XSL Transformation?]
Date Tue, 18 Jun 2002 13:38:33 GMT
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.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message