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

Re: About validating post xsl

Subject: Re: About validating post xsl
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 12 Dec 2002 14:26:42 -0700 (MST)
Re:  About validating post xsl
Dimitre Novatchev wrote:
> Mike Brown wrote:
> > If you choose XML output, and have not used disable-output-escaping,
> > the serialized result will be well-formed, always.
> 
> Hmm... Only in some cases. Here's what the spec says:
> 
> "The xml output method outputs the result tree as a well-formed XML
> external general parsed entity. If the root node of the result tree has
> a single element node child and no text node children, then the entity
> should also be a well-formed XML document entity"

I said you will get well-formed output.

The section of the spec you quoted says that you either get a well-formed
"external general parsed entity"  or you get a well-formed "document entity".

Both are well-formed.

There is no contradiction here.


You are right about the former type of entity not being validatable. My first
message ("certainly") was imprecise in this regard. But the second message, in
which I said the validatability of the result depends on what logical content
the stylesheet author said to produce, was correct, AFAIK. There's nothing 
that happens during serialization that would affect validation, is there?
As long as the result tree represents the correct XML, and the XML output 
method is used...

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/xml/

 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.