[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: RE: [ebxml-cppa] CPPA version 1.10
tried
both 1.4.3 and 1.4.4... slightly different errors but pretty much
fail..
see 4
test case... 1.4.3 and 1.4.4... with and without adding the
xmlns:xml="..." to XSD file.
only
difference in error is with Xerces 1.4.3 (without
xmlns:xml="..")... see red bold
line
btw,
the parser is configured with the following features...
parser.setFeature("http://xml.org/sax/features/validation",
true);
parser.setFeature("http://xml.org/sax/features/namespaces", true); parser.setFeature("http://apache.org/xml/features/validation/schema",true); parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking",true); ###
Xerces 1.4.4 - as-is ###
>
java -classpath ".;xerces_144.jar" SchemaValidate
draft-cpp-example-companyA-016.xml
Error: Error: constraint 3.x.3: Attribute 'form' cannot appear in element 'attribute'. (line=3) Error: Error: constraint 3.x.3: Attribute 'form' cannot appear in element 'attribute'. (line=3) Error: Schema error: no attribute named "lang" was defined in schema : http://www.w3.org/XML/1998/namespace. (line=3) Error: Attribute "xml:lang" must be declared for element type "tp:Comment". (line=308) ###
Xerces 1.4.4 - add "xmlns:xml="http://www.w3.org/XML/1998/namespace""
to XSD file ###
>
java -classpath ".;xerces_144.jar" SchemaValidate
draft-cpp-example-companyA-016-local.xml
Error: Error: constraint 3.x.3: Attribute 'form' cannot appear in element 'attribute'. (line=3) Error: Error: constraint 3.x.3: Attribute 'form' cannot appear in element 'attribute'. (line=3) Error: Schema error: no attribute named "lang" was defined in schema : http://www.w3.org/XML/1998/namespace. (line=3) Error: Attribute "xml:lang" must be declared for element type "tp:Comment". (line=308) ### Xerces 1.4.3
- as-is ###
>
java SchemaValidate draft-cpp-example-companyA-016.xml
Error: Error: constraint 3.x.3: Attribute 'form' cannot appear in element 'attribute'. (line=3) Error: Error: constraint 3.x.3: Attribute 'form' cannot appear in element 'attribute'. (line=3) Error: Schema error: prefix : [xml] cannot be resolved to a URI. (line=3) Error: Schema error: no attribute named "lang" was defined in schema : . (line=3) Error: Attribute "xml:lang" must be declared for element type "tp:Comment". (line=308) ###
Xerces 1.4.3 - add "xmlns:xml="http://www.w3.org/XML/1998/namespace""
to XSD file ###
>
java SchemaValidate draft-cpp-example-companyA-016-local.xml
Error: Error: constraint 3.x.3: Attribute 'form' cannot appear in element 'attribute'. (line=3) Error: Error: constraint 3.x.3: Attribute 'form' cannot appear in element 'attribute'. (line=3) Error: Schema error: no attribute named "lang" was defined in schema : http://www.w3.org/XML/1998/namespace. (line=3) Error: Attribute "xml:lang" must be declared for element type "tp:Comment". (line=308)
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC