W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2002

Re: attribute declaration

From: Eddie Robertsson <erobertsson@allette.com.au>
Date: Tue, 16 Apr 2002 14:12:51 +1000
Message-ID: <3CBBA4C3.8C10AEB1@allette.com.au>
To: Joe Hallett <jhallett@mail.colgate.edu>
CC: xmlschema-dev@w3.org
Hi Joe,

><element name="Rules" type="rul:RulesType"/>
> <complexType name="RulesType">
>  <sequence>
>  <element name="Rule" type="rul:RuleType" maxOccurs="unbounded"/>
>  </sequence>
>  <!-- a variable name that will be returned at the termination of the
rules engine -->
>  <attribute name="Return" type="string" use="required"/>
> </complexType>
>I am running Xerces 1.4.4 as a parser and it is giving me the following
error: [**] org.xml.sax.SAXParseException: Attribute "Return" is
>required and must be specified for element type "Rules".at 4:24 of null
- file:/C:/Program Files/Apache Tomcat

From the error message I would guess that you don't have the Return
attribute specified on the Rules element in your instance document.

So, you probably have:


but you should have:

<Rules Return="...">

Received on Tuesday, 16 April 2002 00:00:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC