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

doctype decl problem

Subject: doctype decl problem
From: "Pawson, David" <DPawson@xxxxxxxxxxx>
Date: Fri, 3 Mar 2000 11:21:21 -0000
doctype path
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


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.