Re: [xsl] SAXParseException

Subject: Re: [xsl] SAXParseException
From: Trevor Nash <tcn@xxxxxxxxxxxxx>
Date: Tue, 27 Aug 2002 10:54:28 +0100
On 26 Aug 2002 13:40:16 -0500, Manish Shah wrote:

>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 . 
>
This is guesswork since you have not told us anything about what the
input looks like: 

Is one of your input XML files, possibly read via document(),  empty?
This would give rise to this message, but the XSLT may well carry on
to produce correct output.

To fix it you have to put an element into the document, for example

<none/>

this depends on the logic of your stylesheet though.

Trevor Nash
--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread