- This topic has 2 replies, 2 voices, and was last updated 20 years, 1 month ago by Riyad Kalla.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
Ronald van KuijkMemberHi,
I have and xsd which is valid according to the validation, but when I use it to generate an xml document the resulting document is always empty.
I’ve tried an xsd where all elements/types are declared in the xsd, but also a version where the types are declared externally and an import is used.
unbfortunately I cannot put this schema on a website, so here it is embedded in this message. btw, if the filename is uppercase, the editor does not recognize correctly.
<?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ec-design.nl/Abz/OBI/1/structures" xmlns:str="http://www.ec-design.nl/Abz/OBI/1/structures" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xsd:element name="Transactie"> <xsd:complexType> <xsd:sequence> <xsd:element name="AL" minOccurs="1" maxOccurs="1"> <xsd:complexType> <xsd:sequence> <xsd:element name="BERREF" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="SD" minOccurs="1" maxOccurs="1"> <xsd:complexType> <xsd:sequence> <xsd:element name="SCHNRVM" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="IC" minOccurs="1" maxOccurs="9"> <xsd:complexType> <xsd:sequence> <xsd:element name="INCDAT" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:date" /> </xsd:simpleType> </xsd:element> <xsd:element name="BA" minOccurs="0" maxOccurs="1"> <xsd:complexType> <xsd:sequence> <xsd:element name="RE" minOccurs="0" maxOccurs="99"> <xsd:complexType> <xsd:sequence> <xsd:element name="VOLGNUM" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:nonNegativeInteger"> <xsd:totalDigits value="3" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="REFNRHS" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="RT" minOccurs="0" maxOccurs="9"> <xsd:complexType> <xsd:sequence> <xsd:element name="AY" minOccurs="0" maxOccurs="9"> <xsd:complexType> <xsd:sequence> <xsd:element name="STRAAT" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="HUISNR" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="4" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="TOEVOEG" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="7" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="LOCATIE" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="PLAATS" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="25" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="PCODEN" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:nonNegativeInteger"> <xsd:totalDigits value="4" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="PCODEA" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:length value="2" /> <xsd:pattern value="\D*" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="PN" minOccurs="0" maxOccurs="99"> <xsd:complexType> <xsd:sequence> <xsd:element name="VOLGNUM" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:nonNegativeInteger"> <xsd:totalDigits value="3" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="TAAKCD" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:nonNegativeInteger"> <xsd:totalDigits value="3" /> <xsd:enumeration value="001" /> <xsd:enumeration value="002" /> <xsd:enumeration value="003" /> <xsd:enumeration value="004" /> <xsd:enumeration value="005" /> <xsd:enumeration value="006" /> <xsd:enumeration value="007" /> <xsd:enumeration value="008" /> <xsd:enumeration value="009" /> <xsd:enumeration value="010" /> <xsd:enumeration value="011" /> <xsd:enumeration value="012" /> <xsd:enumeration value="013" /> <xsd:enumeration value="014" /> <xsd:enumeration value="015" /> <xsd:enumeration value="016" /> <xsd:enumeration value="017" /> <xsd:enumeration value="018" /> <xsd:enumeration value="019" /> <xsd:enumeration value="020" /> <xsd:enumeration value="900" /> <xsd:enumeration value="901" /> <xsd:enumeration value="999" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="ACTICD" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="5" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="AU" minOccurs="0" maxOccurs="9"> <xsd:complexType> <xsd:sequence> <xsd:element name="AUTCD" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="3" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="MAXAUTB" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="VVACTGO" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:nonNegativeInteger"> <xsd:totalDigits value="2" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="FC" minOccurs="0" maxOccurs="9"> <xsd:complexType> <xsd:sequence> <xsd:element name="VOLGNUM" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:nonNegativeInteger"> <xsd:totalDigits value="3" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="FACTNR" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="FACTDAT" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:date" /> </xsd:simpleType> </xsd:element> <xsd:element name="VALSRT" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:length value="3" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="BTWGEIN" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:length value="1" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="BTWPERC" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="7" /> <xsd:fractionDigits value="3" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="TOTBDRN" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="BTWBDRT" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="TOTBDRB" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="CCDPRC" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="7" /> <xsd:fractionDigits value="3" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="Factuurregel" minOccurs="0" maxOccurs="999"> <xsd:complexType> <xsd:sequence> <xsd:element name="LEVDAT" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:date" /> </xsd:simpleType> </xsd:element> <xsd:element name="GGOEDOM" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="70" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="GGOEDAT" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="6" /> <xsd:fractionDigits value="3" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="EENHPRS" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="TOTBERG" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="TBDRGFR" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="BTWPRC" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="7" /> <xsd:fractionDigits value="3" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="ExpertiseTaxatie" minOccurs="0" maxOccurs="9"> <xsd:complexType> <xsd:sequence> <xsd:element name="OPDRID" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="ASSID" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="ABTCD" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:nonNegativeInteger"> <xsd:totalDigits value="3" /> <xsd:enumeration value="001" /> <xsd:enumeration value="002" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="INSPDAT" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:date" /> </xsd:simpleType> </xsd:element> <xsd:element name="PartijTaxateurExpert" minOccurs="0" maxOccurs="9"> <xsd:complexType> <xsd:sequence> <xsd:element name="ANAAM" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="VOORV" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="10" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="VOORL" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="12" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="Factuur" minOccurs="0" maxOccurs="9"> <xsd:complexType> <xsd:sequence> <xsd:element name="VOLGNUM" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:nonNegativeInteger"> <xsd:totalDigits value="3" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="FACTNR" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="35" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="FACTDAT" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:date" /> </xsd:simpleType> </xsd:element> <xsd:element name="BTWPERC" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="7" /> <xsd:fractionDigits value="3" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="TOTBDRN" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="BTWBDRT" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="TOTBDRB" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="CCDPRC" minOccurs="0" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="7" /> <xsd:fractionDigits value="3" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="Factuurregel" minOccurs="0" maxOccurs="999"> <xsd:complexType> <xsd:sequence> <xsd:element name="TBDRGFR" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="14" /> <xsd:fractionDigits value="2" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="BTWPRC" minOccurs="1" maxOccurs="1"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="7" /> <xsd:fractionDigits value="3" fixed="true" /> </xsd:restriction> </xsd:simpleType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>
Riyad KallaMemberOdd, I was able to reproduce the problem, I will file it as a bug and see what we find.
Riyad KallaMemberMoving to bugs
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)