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

Re: Creating HTML and XHTML with one stylesheet with

Subject: Re: Creating HTML and XHTML with one stylesheet with namespace-alias
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 02 Sep 2007 20:19:30 -0400
Re:  Creating HTML and XHTML with one stylesheet with
At 2007-09-03 10:04 +1000, Deborah Pickett wrote:
Can someone please confirm if what I'm doing here conforms to the XSLT
1.0 spec?  It seems to crash Xalan-J 2.7.0, but Saxon 6 and MSXML 4 do
what I want.  (XSLT 2.0 clearly states that this works, and indeed Saxon
8 does so.)
...
Specifically, what I want to know is:
Is is allowed for namespace-alias to map the null namespace in XSLT 1.0?

Section 7.1.1 shows:


<!-- Category: top-level-element -->
<xsl:namespace-alias
  stylesheet-prefix = prefix | "#default"
  result-prefix = prefix | "#default" />

Since only the default namespace can be the null namespace, this looks pretty explicit to me that provision is made for referencing the null namespace. The text reads "the result-prefix attribute specifies the corresponding namespace URI that will appear in the result tree". Granted there is no wording explicitly about the null namespace, but I would think any conformance would not preclude it being supported since the specification doesn't explicitly constrain the URI for the default namespace.

And, anyway, Saxon is so very (very!) rarely wrong. I've relied on 6.5.5 for a lot of production XSLT 1.0 work and always use it in my classroom, and the latest Saxon for the XSLT 2.0 exercises.

I hope this helps.

. . . . . . . . . . . Ken


-- Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1 World-wide corporate, govt. & user group XML, XSL and UBL training RSS feeds: publicly-available developer resources and training G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal

Current Thread

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

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-2007 All Rights Reserved.