W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > July 2008

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

From: <Toman_Vojtech@emc.com>
Date: Wed, 23 Jul 2008 03:56:59 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870BD9BCFB@CORPUSMX10A.corp.emc.com>
To: <ndw@nwalsh.com>, <public-xml-processing-model-wg@w3.org>

> -----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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 23 July 2008 07:58:34 GMT