This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: doctype decl problem


 David Carlisle

>> 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">

Sorry, wrong terminology

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

Thanks David.

>
>> 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

From the DTD

<!ELEMENT svg (%descTitleDefs;,metadata?,
                  (path|text|rect|circle|ellipse|line|polyline|polygon|
                   use|image|svg|g|switch|a
                   %ceExt;%svgExt;)*) >
<!ATTLIST svg
  xmlns CDATA #FIXED 'http://www.w3.org/Graphics/SVG/SVG-19991203.dtd'
  id ID #IMPLIED
  xml:lang NMTOKEN #IMPLIED

Yes, you are right (as mostly).
One to look out for!

Appreciated David.

Regards, DaveP


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]