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

RE: XS0043 and err:XS0045

From: <Toman_Vojtech@emc.com>
Date: Tue, 4 Nov 2008 02:36:55 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870D4CA7DF@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

> I think these should probably be dynamic errors and I actually think
> 43 subsumes 45.

I agree that the codes could be merged together, but why do you want
them to be dynamic errors? To be able to use them for options whose
value must be a QName, such as in the case of p:add-attribute?

<p:declare-step type="p:add-attribute">
  <p:input port="source"/>
  <p:output port="result"/>
  <p:option name="match" required="true"/>
  <p:option name="attribute-name" required="true"/>  <!-- QName -->
  <p:option name="attribute-value" required="true"/>

(Just noticed that for p:add-attribute, the spec just says: "The value
of the attribute-name option must be a QName. The corresponding expanded
name is used to construct the added attribute." So, if the value is not
a valid QName, the spec does not say what error should be raised.)

Received on Tuesday, 4 November 2008 07:38:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:41:08 UTC