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

RE: This can't be right, XML with no root element: Sax

Subject: RE: This can't be right, XML with no root element: Saxon & XT vs. Xalan
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 26 Jul 2001 17:01:25 +0100
xslt no root element
> I've been evaluating Schematron. There is an example that
> tests for WAI
> conformance.  I've noticed that the validation transformation that it
> generates, does not use the text output mode, and yet it does not
> produce a root element, just text. So you get output like:
>
> <?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.

Mike Kay
Software AG


> should have
> some descriptive text: an alt or longdesc attribute.(1.1) An input
> element should have some descriptive text: an alt or longdesc
> attribute.
>
> { ...and so on...}
>
> The XSLT code is at the bottom of this document.
>
> XT and InstantSaxon 6.2.2 apply the transformation without
> error. Xalan
> 1.2 (via Cocoon 1.8.2) reacts thusly:
> "org.apache.xalan.xslt.XSLProcessorException: Warning: can't
> output text
> before document element! Ignoring... "
> Personally I'm with the Apache people on this one.
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.