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

Re: Options and parameters proposal

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 07 Mar 2007 17:43:53 +0000
Message-ID: <45EEF9D9.10103@jenitennison.com>
To: public-xml-processing-model-wg@w3.org

Norm,

Norman Walsh wrote:
> / Jeni Tennison <jeni@jenitennison.com> was heard to say:
> | Step declarations would declare the name of a parameter set, so XSLT
> | would look like:
> |
> | <p:declare-step type="p:xslt">
> |   <p:input port="source" sequence="no"/>
> |   <p:input port="stylesheet" sequence="no"/>
> |   <p:output port="result" sequence="yes"/>
> |   <p:option name="initial-mode"/>
> |   <p:parameter-set name="parameters"/>
> | </p:declare-step>
> 
> So what would a use of p:xslt look like given this declaration?

<p:xslt>
   <p:input port="source">
     <p:pipe step="otherstep" port="result" />
   </p:input>
   <p:input port="stylesheet">
     <p:document href="stylesheet.xml" />
   </p:input>
   <p:parameter-set name="parameters">
     <p:parameter name="skin">classic</p:parameter>
     <p:parameter name="view">normal</p:parameter>
   </p:parameter-set>
</p:xslt>

> Also, what would this mean?
> 
> <p:xslt>
>   <p:parameter-set name="group1">
>     <p:parameter name="foo">...</p:parameter>
>   </p:parameter-set>
>   <p:parameter-set name="group2">
>     <p:parameter name="foo">...</p:parameter>
>     <p:parameter name="bar">...</p:parameter>
>   </p:parameter-set>
> </p:xslt>

An error. You can't specify an undeclared parameter set.

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com
Received on Wednesday, 7 March 2007 17:45:39 GMT

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