RE: param name="x:foo" namespace="someURI"?

> -----Original Message-----
> From: public-xml-processing-model-wg-request@w3.org 
> [mailto:public-xml-processing-model-wg-request@w3.org] On 
> Behalf Of Norman Walsh
> Sent: Tuesday, July 22, 2008 7:12 PM
> To: public-xml-processing-model-wg@w3.org
> Subject: c:param name="x:foo" namespace="someURI"?
> 
> In c:param, we say:
> 
>   If the namespace attribute is specified, then the expanded name of
>   the parameter is constructed from the specified namespace and the
>   local-name part of the name value (in other words, the prefix, if
>   any, is ignored).
> 
> Why did we do that? It implies that
> 
>   <c:param xmlns:x="http://not-this-namespace.org/"
>            name="x:foo"
>            namespace="http://this-namespace/"
>            value="bar"/>
> 
> produces a parameter named "foo" in the 
> "http://this-namespace/" namespace.
> That seems...misleading at best. Why didn't we make that an error?
> 

I think one possible use of the 'namespace' attribute would be for
parameters that are dynamically generated (I think there is no easy way
to create namespace declarations in XProc). Perhaps we could make 'name'
a NCName?

Vojtech

Received on Wednesday, 23 July 2008 07:58:33 UTC