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

RE: Name Spaces in Selects and xsl:element

Subject: RE: Name Spaces in Selects and xsl:element
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 5 May 2005 17:34:32 +0100
RE:  Name Spaces in Selects and xsl:element
> Contained in the variable "sorted_members".  The xml result of this is
> not as "pretty" as I'd like it, all though better for sure; it removed
> my other namespaces, but the xmlns definition for "fn" lingers.
> Any ideas on that?

exclude-result-prefixes prevents the copying of unused namespaces from the
stylesheet when elements are constructed using literal result elements.

It doesn't

(a) prevent the copying of a namespace that is actually used by the elements
or attributes you're creating in the result tree

(b) change the name or namespace of those elements

(c) prevent the copying of namespaces from the source document.

In your case the fn: namespace is actually used in the element name, so the
only way you can prevent it being declared is to choose a different element
name (that is, a name in a different namespace).

Michael Kay

Current Thread


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.
First Name
Last Name
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.