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

Re: Generating namespace declarations given a result tree?

Subject: Re: Generating namespace declarations given a result tree?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 17 May 2000 09:39:04 +0100 (BST)
Re: Generating namespace declarations given a result tree?

> 1. Are you supposed to output a namespace declaration for each namespace node

XSLT gives you no way of creating a namespace declaration.
You just put element and attribute nodes into the result tree.
Each of these has a (possibly null) namespace name and a local name.
When the result tree is linearised, the processor will add whatever
namespace declarations are needed to ensure that the nodes end up in the
right namespace if the linerised result is reparsed as an XMl document.
In addition element nodes will have attatched namespace declaration
nodes, and if the element is copied to the result this will also
generate namespace declarations unless this is suppressed (see 3)

> 2. Does it matter what prefixes are used (this includes using the
> default namespace)? 

No

> 3. Is there a convention on removing unused namespaces?

decare namespaces you have used in the source or stylesheet but don't
use in the output using exclude-result-prefixes, thenthe processor
should not add any declarations for those.

David


 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.