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

Re: Dynamic creation of parameters without @namespace

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 06 Aug 2008 09:41:23 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m27iaub6rg.fsf@nwalsh.com>
/ Toman_Vojtech@emc.com was heard to say:
| This solution is, in my opinion, much cleaner/clearer (although it needs
| about the same amount of code as the previous one :-)

Yes. For generating c:param elements, the @name (is an NCName) +
@namespace route is definitely the easiest. (We mandate it in

(I don't think, though maybe I was confused, that there was ever any motion
to remove that option.)

However, the QName form is easier if you're going to be putting a few
in explicitly:

  <p:input port="parameters">
      <c:param-set xmlns:x="http://my/xslt/parameter/namespace">
        <c:param name="x:foo" value="1"/>
        <c:param name="x:bar" value="2"/>
        <c:param name="x:baz" value="3"/>

*All* I was suggesting was that this:

  <c:param-set xmlns:x="http://my/xslt/parameter/namespace">
     <c:param name="x:foo" value="1" namespace="http:/something/else"/>

should be an error. Saying that its supposed to be equivalent to this:

  <c:param-set xmlns:x="http://my/xslt/parameter/namespace">
     <c:param name="x:foo" value="1" xmlns:x="http:/something/else"/>

doesn't seem very useful because parameter names are QNames so the
implementation never cares about the prefix anyway.

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | The First Amendment is often
http://nwalsh.com/            | inconvenient. But that is besides the
                              | point. Inconvenience does not absolve
                              | the government of its obligation to
                              | tolerate speech.--Justice Anthony
                              | Kennedy, in 91-155

Received on Wednesday, 6 August 2008 13:42:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:46 UTC