[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|