Re: Speaking of in-scope namespaces...

On 9/7/07, Norman Walsh <ndw@nwalsh.com> wrote:
> I think it'd be:
>
> <content xmlns="nonsuri" xmlns:a="nsauri" xmlns:b="nsburi"
> xmlns:c="nscuri" xmlns:p="http://www.w3.org/ns/xproc"/>
>
> I don't think the xxx namespace decl. is in scope.

Right. And I would expect XSLT to do something similar when you write:

<xsl:variable as="element(doc)" name="v">
    <doc xmlns="nonsuri" xmlns:a="nsauri" xmlns:b="nsburi" xmlns:c="nscuri">
        <content/>
    </doc>
</xsl:variable>

<xsl:copy-of xmlns:xxx="nonsuri" select="$v/xxx:content"/>

Alex
-- 
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/

Received on Friday, 7 September 2007 22:04:16 UTC