W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > October 2007

Primary parameter input port?

From: Norman Walsh <ndw@nwalsh.com>
Date: Sun, 07 Oct 2007 22:46:11 -0400
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2ve9i8gss.fsf@nwalsh.com>
7.1.17 says:

  Note

  Since the parameters port is not primary, any explicit p:parameter
  settings must include a port attribute with value parameters, per
  the last paragraph of Section 5.7.2, “p:parameter”.

And 5.7.2 says:

  If the optional port attribute is specified, then the parameter
  appears on the named port, otherwise the parameter appears on the
  step's primary parameter input port. It is a static error
  (err:XS0034) if the specified port is not a parameter input port or
  if no port is specified and the step does not have a primary
  parameter input port.

Why can't the port default to the only parameter input port, if there is
only one? Why does it have to be the primary input port?

Consider:

  <p:xslt>
    <p:parameter name="foo" value="bar"/>
    ...
  </p:xslt>

Don't we want that to work?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Everything should be made as simple as
http://nwalsh.com/            | possible, but no simpler.

Received on Monday, 8 October 2007 02:46:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:42 GMT