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

RE: p:namespace-rename & attributes

From: <Toman_Vojtech@emc.com>
Date: Fri, 23 May 2008 03:25:26 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870B288A98@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-wg@w3.org>

> 
> No, it isn't. Also, why isn't the from option required?
> 
>                                         Be seeing you,
>                                           norm

I think both from and to options should have a default value:

<p:declare-step type="p:namespace-rename">
  <p:input port="source"/>
  <p:output port="result"/>
  <p:option name="from" select="''"/>  <!-- anyURI -->
  <p:option name="to" select="''"/>    <!-- anyURI -->
  <p:option name="elements-only"/>     <!-- boolean -->
</p:declare-step>

That would make it possible to simplify sentences like:

"If the from option is absent, or its value is the empty string, ..."

Regards
Vojtech
Received on Friday, 23 May 2008 07:26:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 23 May 2008 07:26:18 GMT