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

Error vocabulary

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 20 Apr 2007 07:18:47 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <87zm538fag.fsf@nwalsh.com>
There's no way to expect complete uniformity of error reporting across
all steps, so I don't think we should try to make the error reporting
vocabulary very complicated.

I propose:

<err:errors name="stepname" type="p:steptype">
  <error code="pfx:localname">
    any wf content
  </error>
</errors>

Consider the following step:

  <p:xslt name="foo">
    <p:input port="stylesheet"><p:document href="style.xsl"/></p:input>
  </p:xslt>

If the style.xsl file fails because of the followng xsl:message

  <xsl:message terminate="yes">
    <xsl:text>You blew it, </xsl:text>
    <xsl:value-of select="$user"/>
  </xsl:message>

The step might generate the following errors:

<err:errors name="foo" type="p:xslt">
  <error code="p:error">You blew it, kid</error>
</err:errors>

Where "p:error" is the error code for "general error".

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | There is always some accident in the
http://nwalsh.com/            | best of things, whether thoughts or
                              | expressions or deeds. The memorable
                              | thought, the happy expression, the
                              | admirable deed are only partly
                              | yours.--Henry David Thoreau

Received on Friday, 20 April 2007 11:19:01 GMT

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