[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Effect of default namespace specifications on imports

Subject: Re: [xsl] Effect of default namespace specifications on imports
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 28 Oct 2012 07:07:57 -0400

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>.

I hope this helps.

. . . . . . . . Ken

Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/
G. Ken Holman                   mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal

Current Thread