xsl-list
[Top] [All Lists]

DOCTYPE Declaration

2004-11-23 03:19:01
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • DOCTYPE Declaration, news <=