Lincoln Mitchell schrieb:

Hello,

> I am trying to generate an SVG file from an Adobe illustrator SVG file
> via XSLT/Cocoon.

> If I delete the DOCTYPE (and the xmlns’ on the svg tag) then all works
> fine – but I want the file to stay intact – so that’s not an option.

How about stripping the namespaces with an additional xsl file? This way
your first file remains intact?

---snip---
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
<xsl:strip-space elements="*"/>

<xsl:template match="/">
        <xsl:apply-templates mode="copy"/>
</xsl:template>

<xsl:template match="*" priority="-1" mode="copy">
        <xsl:element name="{name()}">
                <xsl:copy-of select="@*"/>
                <xsl:apply-templates mode="copy"/>
        </xsl:element>
</xsl:template>
</xsl:stylesheet>
---snap---

HTH
Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to