Subject: Re: Generating namespace declarations given a result tree? From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 17 May 2000 09:39:04 +0100 (BST) |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Generating namespace declarations g, John-Paul Sicotte | Thread | Re: Generating namespace declaratio, John-Paul Sicotte |
Producing <% ... %> tags in XSL, Mattias Konradsson | Date | RE: Producing <% ... %> tags in , Ben Robb |
Month |