[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|