[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

DOCTYPE Declaration

Subject: DOCTYPE Declaration
From: news@xxxxxxxxxxx
Date: Tue, 23 Nov 2004 11:19:01 +0100
doctype svg
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.