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

Re: Can I access elements in the output tree?

Subject: Re: Can I access elements in the output tree?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 9 Nov 2000 11:40:40 GMT
xsl processing instruction name xml
> Looking at http://www.w3.org/TR/xslt#section-XML-Output-Method (section
> 16.1) some more, it looks like the behavior is within the bounds of the
> recommendation. The XML output method renders a wellformed XML external
> general parsed entity:

but you can't add a text declaration to the file by using
 <xsl:processing-instruction name='xml'/>
because processing instructions can't have the name xml.


> That is the TextDecl is optional.
> The example was compliant after all.

The desired linearised output was compliant, but the stylesheet used to
get it was not compliant.

> This strenghtens my perception of
> the fact that the xml output method renders a document [1] rather than an
> extParsedEnt [78].

Normally it is making an external parsed entity: You can output more
than one top level element below the root node. This wouldn't be allowed
in an XML document.

If you specify you want a DOCTYPE declaration, and also try to output
multiple element children of the root node then you are in error.

> And why does the xml output method in one case omit the TextDecl [77] and in
> an other insert it?
It should always insert it unless youve specified
omit-xml-declaration = "yes"

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp


 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.