|
[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?
> 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
|
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
|

Cart








