- From: Eddie Robertsson <erobertsson@allette.com.au>
- Date: Tue, 16 Apr 2002 16:07:44 +1000
- To: Joe Hallett <jhallett@mail.colgate.edu>, XSD <xmlschema-dev@w3.org>
> <Rules xmlns="http://localhost:8080/xmlp/xs" Return="mostHospital"> > > Looks like it should work to me. Any other ideas?? Probably a namespace issue then. Can you send the complete schema and instance document and we'll have a look. Cheers, /Eddie > > > -- Joe > > > 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 > > >4.0/webapps/xmlp/xs/RulesInstance.xml > > > > 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: > > > > <Rules> > > <Rule>...</Rule> > > <Rule>...</Rule> > > <Rule>...</Rule> > > ... > > </Rules> > > > > but you should have: > > > > <Rules Return="..."> > > <Rule>...</Rule> > > <Rule>...</Rule> > > <Rule>...</Rule> > > ... > > </Rules> > > > > Cheers, > > /Eddie > > > >
Received on Tuesday, 16 April 2002 01:55:40 UTC