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

Consider the following step:

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

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"/>

The step might generate the following errors:

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

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

                                        Be seeing you,

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:42 UTC