Commit 9f61408c authored by Pakulin's avatar Pakulin
Browse files

Fixed example from the standard -- create XML that validates against the XSD file

parent 68d1f7fe
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -8,8 +8,8 @@ module Pos_07060101_extending_simple_content_001 {
    
    import from schema_Pos_07060101_extending_simple_content_001 language "XSD" all;

    template E23 m_test := {bar := 1, foo := 2.0, base := "something"}

//#TC m_test
    template E23el m_msg := {bar := 1, foo := 2.0, base := "something"}

//#TC 
}
+3 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<e23 bar=1 foo=2.0>something</e23>
 No newline at end of file
<e23el 
	xmlns="schema:Pos_07060101_extending_simple_content_001"
bar="1" foo="2.0">something</e23>
+12 −10
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="schema:Pos_07060101_extending_simple_content_001">
<!-- makes no difference if this schema is including the next one -->
  targetNamespace="schema:Pos_07060101_extending_simple_content_001" 
  xmlns:types="schema:Pos_07060101_extending_simple_content_001">

	<complexType name="e23">
		<simpleContent>
			<extension base="string">
@@ -11,4 +12,5 @@ targetNamespace="schema:Pos_07060101_extending_simple_content_001">
		</simpleContent>
	</complexType>
	
	<element name="e23el" type="types:e23"/>
</schema>