|
Subject: RE: [xsl] Top Level Element Error From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx> Date: Tue, 9 Nov 2004 09:16:14 -0000 |
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.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Top Level Element Error, Jen Jiang | Thread | RE: [xsl] Top Level Element Error, Jen Jiang |
| Re: [xsl] XML/XSL free editor (ecli, George Cristian Bina | Date | Re: [xsl] Conditional extraction of, Geert Josten |
| Month |