Hi Peter,

I created a test case for validation, and got the following error message:

org.orbeon.oxf.common.ValidationException: oxf:/scratchpad/model.xpl,
line 33, column 26: Error tag name "nam" is not allowed. Possible tag
names are: <name> near nam (schema: oxf:/scratchpad/book.xsd)

Please let me know if you get a differant error message using the
files below. You can also send me the schema you are using, and I'll
have a look at it.

OXF uses Sun's Multi Schema Validator (MSV) for XML Schema
validation. The validator's error message are displayed directly
without modifications.

Regards,
Julien

validation-test.xpl:
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";>
<p:processor uri="oxf/processor/xml-serializer">
<p:input name="config">
<config/>
</p:input>
<p:input name="data" schema-href="book.xsd" >
<book isbn="0836217462">
<title>
Being a Dog Is a Full-Time Job
</title>
<author>Charles M. Schulz</author>
<character>
<name>Snoopy</name>
<friend-of>Peppermint Patty</friend-of>
<since>1950-10-04</since>
<qualification>
extroverted beagle
</qualification>
</character>
<character>
<!-- The following element should be name -->
<nam>Peppermint Patty</nam>
<since>1966-08-22</since>
<qualification>bold, brash and tomboyish</qualification>
</character>
</book>
</p:input>


    </p:processor>
</p:config>


book.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:element name="book">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string"/>
<xs:element name="author" type="xs:string"/>
<xs:element name="character" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="friend-of" type="xs:string" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="since" type="xs:date"/>
<xs:element name="qualification" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="isbn" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>




Peter Charles wrote:

Hello,



When using the validation processor against xml schemas the processor gives back messages like ‘message="19"’ is there any documentation on these messages? Using a relaxNG schema the same input gives a more verbose error message, which includes the line and column number of the error.



Thanks



Peter




------------------------------------------------------------------------


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users


_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to