W3C home > Mailing lists > Public > xproc-dev@w3.org > July 2009

Required attributes are not required by the XProc schema?

From: George Cristian Bina <george@oxygenxml.com>
Date: Thu, 30 Jul 2009 17:04:59 +0300
Message-ID: <4A71A88B.8050206@oxygenxml.com>
To: XProc Dev <xproc-dev@w3.org>
I noticed for example that the error steps is described in the spec
<p:declare-step type="p:error">
      <p:input port="source" primary="false"/>
      <p:output port="result" sequence="true"/>
      <p:option name="code" required="true"/>                       <!-- 
QName -->

Note the required="true" set on the code option.
In the schema however we have a code attribute defined as optional:

<define name="Step-error">
     <element name="error">
         <ref name="name.ncname.attr"/>
       <ref name="common.attributes"/>
         <attribute name="code">
           <data type="QName"/>
           <ref name="InputBinding"/>
           <ref name="WithOption"/>
           <ref name="Log"/>
             <ref name="Documentation"/>
             <ref name="PipeInfo"/>

Is this an error and needs to be corrected or there are some reasons for 
this difference?

Best Regards,
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
Received on Thursday, 30 July 2009 14:05:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:48 UTC