Re: [xsl] SAXParseException

Subject: Re: [xsl] SAXParseException
From: Manish Shah <manish@xxxxxxxxxxxx>
Date: 27 Aug 2002 10:13:17 -0500
Hey Trevor,

That would be a good guess, but I'm not doing it programatically. I'm
using COCOON to do the processing, passing in the XSL and the XML from a
JSP. 

Any other ideas?

Manish

On Tue, 2002-08-27 at 04:54, Trevor Nash wrote:
> 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
> 
> 



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


Current Thread