Re: Primary parameter input port?

On 10/8/07, Norman Walsh <ndw@nwalsh.com> wrote:
> 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?


Sure but I think a misunderstanding is still around

Are "parameter input ports" "input ports" ?
If not, why can't we have the notion of "primary parameter input ports" ?

Do they live in the same space? what kind of property do they share ?

Xmlizer

Received on Monday, 8 October 2007 08:50:36 UTC