Subject: RE: 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: 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 |
- RE: Need to detect if a node has a ' or ' or " or " within it, (continued)
- Gurnam Bedi - Tue, 27 Aug 2002 14:05:28 -0400 (EDT)
- Michael Kay - Tue, 27 Aug 2002 12:58:34 -0400 (EDT)
- J.Pietschmann - Tue, 27 Aug 2002 16:14:48 -0400 (EDT)
- Michael Kay - Tue, 27 Aug 2002 12:52:07 -0400 (EDT)
- Manish Shah - Tue, 27 Aug 2002 13:04:50 -0400 (EDT) <=
- Michael Kay - Tue, 27 Aug 2002 14:01:08 -0400 (EDT)
- Trevor Nash - Tue, 27 Aug 2002 06:11:07 -0400 (EDT)
- Manish Shah - Tue, 27 Aug 2002 11:05:10 -0400 (EDT)
- Trevor Nash - Wed, 28 Aug 2002 07:11:05 -0400 (EDT)
|
|