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

RE: Trouble with namespaces and running identity trans

Subject: RE: Trouble with namespaces and running identity transform on XHTML
From: "James J. Ramsey" <jjramsey_6x9eq42@xxxxxxxxx>
Date: Fri, 12 Mar 2004 10:05:59 -0800 (PST)
RE:  Trouble with namespaces and running identity trans
--- Michael Kay <mhk@xxxxxxxxx> wrote:

> I don't think there
> is a reliable solution that is guaranteed to work on
> every XSLT processor,
> and that's as true of XSLT 2.0 as it is of 1.0.
> Sadly, XHTML violates the
> assumptions behind the Xpath data model by requiring
> a specific (empty)
> prefix.

I've been looking back over the specs for XSLT 1.0 and
2.0, and the data models for XPath 1.0 and 2.0, and
I'm not so sure the pessimism is warranted. As far as
I can tell, it is perfectly possible to create an XSL
1.0 transform that writes a result tree whose
namespace nodes have expanded names with an empty
local part--a.k.a. the namespace prefix--and also
perfectly possible to make an XSL 2.0 transform that
writes a result tree whose namespace nodes have empty
prefix properties. So it's possible to write a result
tree that can be serialized as a valid XHTML document.
The catch is that some parts of the XSLT specs give
more freedom than others on what namespace nodes can
be written to the result tree.


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster
http://search.yahoo.com

 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.