[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Top Level Element Error

Subject: RE: Top Level Element Error
From: Jen Jiang <zhenjiang14221@xxxxxxxxx>
Date: Tue, 9 Nov 2004 07:55:05 -0800 (PST)
xml top level element
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.