This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: SAXParseException
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 27 Aug 2002 17:56:07 +0100
- Subject: RE: [xsl] SAXParseException
- Reply-to: xsl-list at lists dot mulberrytech dot com
> The parser I'm using is SAXON and the XSLT processor is
> Cocoon. I am using the saxon:evaluate function, so I don't
> know what other processors would support a similar function.
Um, no: Saxon is an XSLT processor, Cocoon is a ... (come to think of
it, what kind of animal *is* Cocoon?).
Saxon includes an XML parser (AElfred), but the message "The root
element is required in a well-formed document" is not coming from
AElfred.
I would think that the most likely explanation for the message is that
you are trying to load a document using the document() function, and the
file exists but is empty. By default, Saxon reports an error from the
document() function, but continues processing.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
>
> I can attach the XML input, but it is quite large. Is this
> okay with the group?
>
> Michael, by the way, I would like to say that your XSL book
> is excellent. I have used it as a reference quite a bit, and
> it's helped me out of a lot of jams.
>
> Thanks.
>
> Manish
>
> On Tue, 2002-08-27 at 03:41, Michael Kay wrote:
> > The error message is coming from the XML parser. You could start by
> > telling us which XML parser and XSLT processor you are
> using. If you
> > don't understand the error messages from one product, a
> good strategy
> > is to try a different product and see if that's more helpful.
> >
> > Beyond that, if you don't understand the message when you know what
> > the input looks like, it's unlikely that we will be able to
> explain it
> > when we don't.
> >
> > Michael Kay
> > Software AG
> > home: Michael.H.Kay@ntlworld.com
> > work: Michael.Kay@softwareag.com
> >
> > > -----Original Message-----
> > > From: owner-xsl-list@lists.mulberrytech.com
> > > [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> > > Manish Shah
> > > Sent: 26 August 2002 19:40
> > > To: xsl-list@lists.mulberrytech.com
> > > Subject: [xsl] SAXParseException
> > >
> > >
> > > Hey guys,
> > >
> > > I'm stumped! I am generating html using xsl/xml, and it's a
> > > pretty involved transformation. At random times, I get
> > > "SAXParseException: The root element is required in a
> > > well-formed document", but then below the exception, the
> > > generated html is actually there. Has anyone seen this
> > > before? I don't know where else to turn to. I'm not exactly
> > > sure how to show source, since there are a lot of includes .
> > >
> > > Manish
> > >
> > >
> > >
> > > XSL-List info and archive:
> > > http://www.mulberrytech.com/xsl/xsl-list
> > >
> > >
> >
> >
> > XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
> >
> >
>
>
>
> XSL-List
> info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list