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

HTML Output & PI

Subject: HTML Output & PI
From: Kevin Jones <kjjones@xxxxxxxxxxxx>
Date: Wed, 30 Oct 2002 13:59:15 +0000
pi html
I have a question on the output format for processing instructions when no 
output method is set. For HTML a XSLT processor is supposed to use 
'>' rather than '?>' to terminate a processing instruction. However if you 
use,

<xsl:template match="/">
	<xsl:processing-instruction name="a">b</xsl:processing-instruction>
	<html/>
</xsl:template>

with Instant Saxon 6.5 the output is,

<?a b?><html/>

I am assuming that Saxon does not determine the output should be HTML until 
after the PI has been output. To handle this correctly would clearly require 
some form of output lookahead is used when formating output which would be 
nasty to implement. So,

1. Is Saxon non-conformant here?
2. If it is are there likely to be any adverse effects? Browser issues?

Thanks,
Kev.







 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.