xsl-list
[Top] [All Lists]

RE: Top Level Element Error

2004-11-09 02:16:14

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(_at_)piper-group(_dot_)com> 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.


<Prev in Thread] Current Thread [Next in Thread>