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

RE: exclude-result-prefixes

Subject: RE: exclude-result-prefixes
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 5 Nov 2001 17:39:10 -0000
prefixes for stop
> I have some literal result elements being added to a result tree with
> namespace declarations that I don't want

> 	  <xsd:element name="{@name}" xsl:exclude-result-prefixes="xsd"/>
>
You can use exclude-result-prefixes to stop unnecessary namespace
declarations being added to the result tree, but not to stop necessary ones.
This one is necessary because the element name xsd:element can't be used in
the result tree unless the namespace with prefix xsd is in scope.

The language of the XSLT 1.0 spec doesn't explain this very clearly. It's
model is that the result tree has no namespace node for namespace xsd, but a
namespace declaration is added at serialization time to make the output
document namespace-conformant. The XSLT 1.1 draft has a better model -
namespace nodes are added to the result tree under a process called
"namespace fixup".

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.