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

RE: XSLT 2.0 HTML output of namespace nodes

Subject: RE: XSLT 2.0 HTML output of namespace nodes
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Sun, 3 Mar 2002 22:37:27 -0000
cdata xsl 2.0 html
> I was under the impression that it was an oversight in XSLT
> 1.0 that the HTML
> output method, by its requirement to not differ from the XML
> output method
> except in certain specified manners, required the
> serialization of namespace
> nodes as xmlns attributes.
>
> However, upon reviewing the HTML output section of the XSLT
> 2.0 WD, I see that
> this behavior has been prescribed even more formally than before:
>
> "The html output method should not output an element
> differently from the xml
> output method unless the expanded-name of the element has a
> null namespace
> URI; an element whose expanded-name has a non-null namespace
> URI should be output as XML."

Unless my eyes deceive me, this sentence is unchanged between the XSLT 1.0
specification and the XSLT 2.0 working draft.
>
> What is the rationale behind this?
>
> I disagree with it, whatever it is :)
>
As a matter of historical fact, I don't know what the original rationale
was. I have assumed in the past, with no particular evidence, that it was
done for the convenience of the users of products that allow HTML documents
to contain XML data islands.

I can't see any particular reason for doing anything else with elements that
are not part of the HTML specification, unless we adopt the draconian step
of saying that everything output by the HTML output method must be valid
HTML.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 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.