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

Re: xsl:namespace

Subject: Re: xsl:namespace
From: Jesper Tverskov <jesper.tverskov@xxxxxxxxx>
Date: Fri, 20 Feb 2009 18:32:51 +0100
Re:  xsl:namespace
I use the xsi:type example because that is the one we have in the
spec, http://www.w3.org/TR/xslt20/#element-namespace, and the one
Michael Kay is using in "XSLT 2,0 and XPath 2.0", 4th Edition, page
392. But the problem with the examples in the spec and MK are, that
xsl:namespace is not really needed. The spec admits that an
xsl:element example would have been more appropriate.

So I kept the literal not so good example of spec and MK as
alternative 2 but I removed xsl:namespace. Then I added an example
with xsl:element, alternative 1,  and I added a dynamic one,
alternative 3.

But the two proposals of Florent and Vladimir are basically the
literal example one more time where xsl:namespace is not needed unless
in a dynamic solution as in my alternative 3. We could make Vladimir's
dynamic but it will not make it less artificial or confusing than my
own example. Instead of the xsi namespace we will get some other
namespace.

So wee still need some good examples of why xsl:namespace can be
necessary. I have provided a dynamic one where it is necessary, and
one using xsl:element, where xsl:namespace is also necessary if
xsl:element must be used (we might e.g. need to compute the name of
the element).


Cheers,
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com

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