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

Re: doctype decl problem

Subject: Re: doctype decl problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 3 Mar 2000 12:09:22 GMT
Re: doctype decl problem
> an xml decl can have a public identifier,

no, because 

<?xml version = "1.0" ?>

that is the xml declaration, not this

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 03December 1999//EN" SYSTEM
"http://www.w3.org/Graphics/SVG/SVG-19991203.dtd">

Tha doctype declaration would be legal if you delete SYSTEM  (PUBLIC is
just followed by two strings the pubid and the sysid)


> However... when I remove the doctype line,
> my templates trigger quite happily.

Most likely the dtd is using an ATTLIST default to supply the namespace
declaration for SVG, so when you have the dtd your source document is
SVG

but when you do


<?xml version = "1.0" ?>

<svg x="0" y="0" width="2523.895996" height="667.296005">

it is just some random unknown element in the null namespace that
happens to be called `svg'

David


 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.