This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
doctype decl problem
- To: xsl-list at mulberrytech dot com
- Subject: doctype decl problem
- From: "Pawson, David" <DPawson at rnib dot org dot uk>
- Date: Fri, 3 Mar 2000 11:21:21 -0000
- Reply-To: xsl-list at mulberrytech dot com
I'm trying to transform an SVG document and getting
totally screwed up with the decl.
If I understand it right, an xml decl can have a public identifier,
but then must have a system identifier as well.
So I cant (as in SGML) say
<?xml version = "1.0" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 03December 1999//EN" >
Instead I must say
<?xml version = "1.0" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 03December 1999//EN" SYSTEM
"http://www.w3.org/Graphics/SVG/SVG-19991203.dtd">
1. Am I correct in my understanding?
( http://www.w3.org/TR/REC-xml#sec-prolog-dtd )
Either way, I have a file which when used with the above prolog shortened to
<?xml version = "1.0" ?>
<!DOCTYPE svg SYSTEM "path/to/myLocalCopyOf/SVG-19991203.dtd">
No element below the root is triggering any of the templates....
To be exact, <xsl:template match= "/"> is triggering,
but the outer container, <svg> is not triggering.
I checked with Ken Holmans showtree and got a load of 'empty' triggers.
However... when I remove the doctype line,
my templates trigger quite happily.
E.g.
<?xml version = "1.0" ?>
<svg x="0" y="0" width="2523.895996" height="667.296005">
<path id="53009526" style="visibility:hidden;"
d="M36 147.885895 L36 36 805.889771 36 805.889771 147.885895 z">
</path>
<image href="53009526.jpg" style="clip-path:url(#53009526);" x="36" y="36"
width="770" height="112"/>
<g >
<text x="103.373047" y="206.992249" style="font-size: 9;font-family:
Arial;fill:black">
Outside my train window, the world still
</text>
</g>
</svg>
Works quite well.
When I insert
<!DOCTYPE svg SYSTEM "../w3c/svg-19991203.dtd">
Nothing other than the / template triggers.
btw, if / is the root template, whats the 'outermost' container called,
in this case <svg> ? is that the first child of the root, or the root?
Any help appreciated.
DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list