Commit e2f79fe5 authored by Pakulin's avatar Pakulin
Browse files

Added notes

parent 9fa6ed0f
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
This test cases uses a special XML Schema for validation due to problems in Xerces-J with loading several schema documents for a single namespace.

The schema documents Pos_050101_namespaces_003.xsd and Pos_050101_namespaces_003_1.xsd were merged manually. The resulting XSD was saved as test_data/Pos_050101_namespaces_003_merged.xsd .

Any changes in the original schema documents mus be reflected in test_data/Pos_050101_namespaces_003_merged.xsd .
 No newline at end of file
+21 −0
Original line number Original line Diff line number Diff line
Acknowledged issue http://forge.etsi.org/mantis/view.php?id=6850

The generated XML file uses xsi:type hint 
<ns1:MyType xsi:type="xsd:float">1.0</ns1:MyType>

XmlDiff uses xerces-J parser. There is a bug in handling xsi:type hints for union types:
https://issues.apache.org/jira/browse/XERCESJ-1652

The reported issue will remain until xerces-J fixed.

SEVERE: DiffErrorHandler.java:47:Error while parsing generated XML document: cvc-elt.4.3: Type 'xsd:float' is not validly derived from the type definition, 'e21unnamed', of element 'ns:MyType'.
Document: 
<ns:MyType 
	xmlns:ns="schema:Pos_070503_derivation_by_union_002" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	
	xsi:type="xsd:float"
	
	>1.0</ns:MyType>
 
 No newline at end of file