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

Re: "expected markup declaration" error

Subject: Re: "expected markup declaration" error
From: "Dave Gomboc" <dave@xxxxxxxxxxxxxx>
Date: Thu, 15 Feb 2001 17:23:16 -0700
expected a markup declaration
David Carlisle also suggested this to me in private email.
Unfortunately, it didn't work either.

I don't particularly care to use the PI at all -- I'm actually happier
to specify the stylesheet to be used on the command line.  But even when
I do that, I still get the "expected markup declaration" error. :-(

Dave

----- Original Message -----
From: "Peter Flynn" <peter@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Cc: "Dave Gomboc" <dave@xxxxxxxxxxxxxx>
Sent: Thursday, February 15, 2001 5:10 PM
Subject: 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


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.