RE: [xsl] Top Level Element Error

Subject: RE: [xsl] Top Level Element Error
From: Jen Jiang <zhenjiang14221@xxxxxxxxx>
Date: Tue, 9 Nov 2004 07:55:05 -0800 (PST)
The files are well-formed because they worked on my
local computer but didn't work on a remote server. If
I comment out the line of code containing the
document() function it doesn't give the error but if I
add it back it shows me the error again. 
I don't know anything about Saxon. Is it an editor or
a class?

Thanks,



I don't see how that's a problem - why does that
prevent you from
applying the transformation outside of XML Spy?

If your source XML (including the XML referenced using
the document()
function) is all well-formed, and all of your
stylesheets are
well-formed (including those referenced by xsl:include
and xsl:import)
then you really need a more helpful error message
pinpointing which of
the files contains the multiple root nodes.  I don't
have experience of
the processor bundled with XML Spy, but Saxon
certainly does this.


cheers
andrew  


> The problem is that I have an element
> <xsl:apply-templates 
>
select="document('http://www.medicinenet.com/rss/specialty/Tin
> nitus.xml')"/>
> within the <xsl:template></xsl:template> elements so
> it sees it having multiple top level elements. 
> 
> --- Andrew Welch <ajwelch@xxxxxxxxxxxxxxx> wrote:
> 
> > > I don't use Notepad, I use XML Spy to edit XML
and
> > > XSLT files.
> > 
> > Ok, the next thing to try is perform the
> > transformation outside of XML
> > Spy, using Saxon, Xalan etc.  If you get the same
> > error you know it's a
> > fault with your code, if not you know it's an
issue
> > with XML Spy.



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 

Current Thread