This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: This can't be right, XML with no root element: Saxon & XT vs. Xalan
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] This can't be right, XML with no root element: Saxon & XT vs. Xalan
- From: "Rob Lugt" <roblugt at elcel dot com>
- Date: Thu, 26 Jul 2001 19:23:02 +0100
- References: <000a01c115ec$39eccd10$8d4e3c3e@PCUKMKA> <3B605AA6.2A14DEC7@redrice.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Francis Norton wrote
> >
> > > <?xml version="1.0" encoding="utf-8"?>(1.1) An image element
> >
> > The XSLT 1.0 specification is clear that the output does not have to be
a
> > well-formed XML document, only a well-formed external general parsed
entity.
> > Which means, in effect, something that would be a well-formed document
if
> > you put a start and end tag around it. Whether you or I happen to like
this
> > spec is somewhat irrelevant.
> >
> out of curiousity, would the above output be a well-formed external
> general parsed entity, given that it starts with an xml declaration?
>
Yes, but in the case of external parsed entities it's not an xml declaration
it's called a Text Declaration (the encoding pseudo-attribute is mandatory).
~Rob
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list