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

Re: Effect of default namespace specifications on impo

Subject: Re: Effect of default namespace specifications on imports
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Sun, 28 Oct 2012 11:17:40 +0000
Re:  Effect of default namespace specifications on impo
On Sun, Oct 28, 2012 at 11:07 AM, G. Ken Holman
<gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
> At 2012-10-28 08:36 +0000, Ihe Onwuka wrote:
>>
>> For 2.0 only the <xsl:element name="{local-name}"> can be replaced by
>> <xsl:copy copy-namespaces="no">
>
>
> Just for the record, this is not true.  copy-namespaces="no" still preserves
> any namespaces that are needed for the element.  Thus, if the element has a
> prefix or is using the default namespace, the pertinent namespace and prefix
> are copied with the <xsl:copy> but not with the <xsl:element>.
>

Ahh it's one of them things I like to call language design features.
Well I can say it worked for moving things from the null namespace to
the desired one without contradicting Ken, but with  his clarification
I'd be more inclined to use the <xsl:element name="{local-name()}">
rather than rely on the particular set of circumstances.

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.