|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] DOCTYPE Declaration
Hello List,
I'm using stylesheets where the output format depends on parameters. The
output format can be SVG or FO with included SVG grafics.
The problem is, that if I m using FO output, I need a DOCTYPE like:
<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
where as when showing SVG in a browser only
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
will work (the difference is "!DOCTYPE svg:svg" -> "!DOCTYPE svg").
alternatively I also can omit the "svg:" namespaces in my stylesheets, but
in this case I only the SVG display works.
In my stylesheets I m using svg like follows:
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:svg="http://www.w3.org/2000/svg"
... />
...
<fo:instream-foreign-object>
<svg:svg width="{$width}" height="{$height + 10}">
<svg:text x="{$width - 5}" y="{$height + 8}"
xsl:use-attribute-sets="VERL-Axis" text-anchor="end"> Some SVG
</svg:text>
</svg:svg>
</fo:instream-foreign-object>
...
</stylesheet>
How can I use SVG for both, the FO and the SVG version? (off cause there is
no FO in the SVG only version :P )
Thanks, Jan
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








