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

RE: SAXParseException

Subject: RE: SAXParseException
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 27 Aug 2002 17:56:07 +0100
saxparseexception root
> 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 
 
> 
> 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@xxxxxxxxxxxx
> > work: Michael.Kay@xxxxxxxxxxxxxx
> > 
> > > -----Original Message-----
> > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> > > Manish Shah
> > > Sent: 26 August 2002 19:40
> > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > Subject:  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


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.