Re: "expected markup declaration" error
On Thu, 15 Feb 2001, you wrote: > Thanks for the attempt. Unfortunately, changing both the wrapping > element and the doctype to ROOT didn't change the situation. [...] > > > filename: wrap_events.xml > > > ========================= > > > <?xml version='1.0' encoding='ISO-8859-1'?> > > > <?xml-stylesheet type='text/xsl' href='render_events.xsl'?> > > > > > > <!DOCTYPE HMM [ > > > <!ENTITY % character_entities SYSTEM "character_entities.dtd"> > > > %character_entities; > > > <!ENTITY events SYSTEM "events.sgml"> > > ]>> [...] > > > Failed while looking for xml-stylesheet PI > > > expected markup declaration > > > At line 8 in file:/.../wrap_events.xml > > > TRaX Transform Exception Now maybe I've missed something, but this says it was looking for a stylesheet Processing Instruction (and therefore presumably didn't find one). And it was looking for it at line 8, which is where your root element start-tag was. Which implies to me you should move your <?xml-stylesheet...?> so that it occupies a line between the end of the internal subset and the start of the instance: <?xml version='1.0' encoding='ISO-8859-1'?> <!DOCTYPE HMM [ <!ENTITY % character_entities SYSTEM "character_entities.dtd"> %character_entities; <!ENTITY events SYSTEM "events.sgml"> ]> <?xml-stylesheet type='text/xsl' href='render_events.xsl'?> <HMM> &events; </HMM> (which is where I always put it). I know it ought not make any difference, as it's only a PI, but is it possible some processors are waiting until they have encountered and read a DocType Declaration (or not...ie by the time they have encountered the root element start-tag) before they want to know anything about a stylesheet? ///Peter XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format