cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <morus.wal...@tanto.de>
Subject Re: XML error.
Date Fri, 12 Nov 2004 07:48:37 GMT
Adriano Smith writes:
> I have an XSL to generate an XML. However the following error was seen.
> 
> What does this error mean??
> Only one top level element is allowed in an XML document. Line 6, Position 6 
>  
It means what it says.
The result of an xslt trafo can only be an xml document, if there is just one
top level element.
So if you have
<rss>
...
</rss>
<rss>
...
</rss>
as the transform result (e.g. because you had more than one news element
in the input), the result cannot be treated as an xml document.

Morus

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message