Handle top level(global) declared attribute and references

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2695 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
inoussa
2013-03-05 15:48:26 +00:00
parent c2ab127031
commit ab893594d7
5 changed files with 178 additions and 15 deletions

View File

@ -0,0 +1,37 @@
<?xml version="1.0"?>
<definitions name="wst_test"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="library1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="urn:wst-test">
<types>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:wst-test">
<xsd:attribute name="intAtt" type="xsd:int">
</xsd:attribute>
<xsd:attribute name="strAtt" type="xsd:string"/>
<xsd:complexType name="TSampleClass">
<xsd:complexContent>
<xsd:attribute ref="n:intAtt" />
<xsd:attribute ref="n:strAtt" />
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AttributedString">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute ref="n:strAtt"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:schema>
</types>
</definitions>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:n="urn:wst-test"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:wst-test">
<xsd:attribute name="intAtt" type="xsd:int">
</xsd:attribute>
<xsd:attribute name="strAtt" type="xsd:string"/>
<xsd:complexType name="TSampleClass">
<xsd:complexContent>
<xsd:attribute ref="n:intAtt" />
<xsd:attribute ref="n:strAtt" />
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AttributedString">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute ref="n:strAtt"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:schema>