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

Re: HTML Output & PI

Subject: Re: HTML Output & PI
From: Kevin Jones <kjjones@xxxxxxxxxxxx>
Date: Thu, 31 Oct 2002 15:46:10 +0000
output to progress
Thanks Michael & David,

I am assuming the automatic detection of HTML was introduced to make it 
possible to write simplified stylesheets (i.e. no xsl:stylesheet). I guess it 
would be too much to make these optional behaviors in a future version of 
XSLT to allow for the optimization and the removal of this nastiness.

Kev.

On Wednesday 30 Oct 2002 5:34 pm, Michael Kay wrote:
> It's a good question. Saxon buffers the formatted comments and PIs until
> it knows what the output method is. Technically I suppose it should
> buffer the unformatted events and only format them when it knows the
> output method.
>
> I would love to file this under "not important enough to worry about"...
>
> Not knowing the output method in advance is a pig: really, I would like
> to know it statically, so that I can do the escaping of fixed text and
> attribute values at compile time. But we have to live with the specs
> that we're given...
>
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx
>
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> > Kevin Jones
> > Sent: 30 October 2002 13:59
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  HTML Output & PI
> >
> >
> >
> > 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
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 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.