This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: "expected markup declaration" error
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] "expected markup declaration" error
- From: "Dave Gomboc" <dave at cs dot ualberta dot ca>
- Date: Thu, 15 Feb 2001 12:24:04 -0700
- Cc: "Jeni Tennison" <mail at jenitennison dot com>
- References: <000001c096ef$fa4f8740$d1718081@thorin> <1115927653.20010215100154@jenitennison.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Thanks for the attempt. Unfortunately, changing both the wrapping
element and the doctype to ROOT didn't change the situation.
Dave
> Hi Dave,
>
> > 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">
> ]>>
> >
> > <root>
> > &events;
> > </root>
> [snip]
> > IE 5.5 + MSXSL 3.0 accepts a double-click on "wrap_events.xml",
performs
> > the transform, and of course, produces squat for output, but it
doesn't
> > error. However, when I run
> >
> > java com.icl.saxon.StyleSheet -a wrap_events.xml > output.html
> >
> > I get the error
> >
> > Failed while looking for xml-stylesheet PI
> > expected markup declaration
> > At line 8 in file:/.../wrap_events.xml
> > TRaX Transform Exception
>
> I'm not sure, but it might be that Saxon is using the information
> provided in the document type declaration, in particular the name of
> the document element, during the parse. In the document type
> declaration, you've declared that the document element is 'HMM'
> whereas in actuality it's 'root'. The mismatch might be causing the
> problem. MSXML probably ignores it.
>
> I hope that's it,
>
> Jeni
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list