Subject: RE: [xsl] SAXParseException From: Manish Shah <manish@xxxxxxxxxxxx> Date: 27 Aug 2002 12:12:56 -0500 |
Hey Michael, The wierdest thing is I never call the document() function, unless I'm using some function that may be calling the document() function? Manish On Tue, 2002-08-27 at 11:56, Michael Kay wrote: > > 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: [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 > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] SAXParseException, Michael Kay | Thread | RE: [xsl] SAXParseException, Michael Kay |
[xsl] Re: XSLT to summarise an XSLT, Dimitre Novatchev | Date | Re: [xsl] <xsl:apply-templates sele, Michael Rothwell |
Month |