Re: [Gestalt-users] Copied elements loose the namespace part of theirname
Status: Alpha
Brought to you by:
colin-adams
From: Florent G. <dar...@ya...> - 2006-09-22 08:45:24
|
Colin Paul Adams wrote: Hi Colin > >>>>> "Colin" == Colin Paul Adams <co...@co...> writes: > Colin> The fix is trivial (it only took a few minutes > Colin> debugging to find the cause of the principal > Colin> error). Although I still have a namespace > Colin> declaration being omitted for the xsl prefix. > Colin> Not sure why - that may be a seperate bug. -- > I note that Saxon does the same thing. > We are both using the same logic - If a namespace > declaration is excluded, and is not the target of a > xsl:namespace-alias declaration, then remove it from the > list of namespaces to be output on the element. > It is the latter clause that causes a declaration for the > xsl namespace to be output. > As far as I can see, this is in strict accordance with the > spec. I'm not sure to understand what is the current behaviour. You first said "I still have a namespace declaration being omitted for the xsl prefix", then you seem to suggest that this declaration is serialised. So I don't know what Gexslt is doing now, but I think §11.1.4 makes clear the declaration has to be in the serialised output: When a literal result element is processed, its namespace nodes are handled as follows: * A namespace node whose string value is a literal namespace URI is not copied to the result tree. * A namespace node whose string value is a target namespace URI is copied to the result tree, whether or not the URI identifies an excluded namespace. > If you think otherwise, try raising a bug report against > Saxon, and see what MHK says. I tried with Saxon, and it outputs the declaration, so I guess Gexslt do so. If it does, I think it is the mandatory behaviour. Thanks for the fix, --drkm ___________________________________________________________________________ Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. http://fr.answers.yahoo.com |