[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Examples of Relax NG schema of UBL
Hi, We describe some UBL schema using Relax NG which are manually translated from W3c XML schema of UBL-1.0-beta. The attached zip includes files following: UBL-CodeList-CountrySubentityCod -1.0-beta.xsd UBL-CodeList-CountrySubentityCode-1.0-beta.rng UBL-CoreComponentParameters-1.0-beta.rng UBL-CoreComponentParameters-1.0-beta.xsd UBL-CoreComponentTypes-1.0-beta.rng UBL-CoreComponentTypes-1.0-beta.xsd UBL-DataTypes-1.0-beta.rng UBL-DataTypes-1.0-beta.xsd UBL-RepresentationTerms-1.0-beta(CodeType).rng UBL-RepresentationTerms-1.0-beta(CodeType).xsd UBL-RepresentationTerms-1.0-beta(IndicatorType).rng UBL-RepresentationTerms-1.0-beta(IndicatorType).xsd Files with .rng extension are Relax NG schema corresponding to W3C XML schema file with .xsd extension. For showing what must be generated by translating tool, only one element and type is included in each schema files. When we study the difference of the power between XML Schema and Relax NG, the following XML Schema definition is not translated to Relax NG. UBL-RepresentationTerms-1.0-beta(IndicatorType).xsd <xsd:simpleType name="IndicatorType"> <xsd:restriction base="cct:IndicatorType"> <xsd:pattern value="false"/> <xsd:pattern value="true"/> </xsd:restriction> </xsd:simpleType> The definition of IndicatorType in Relax NG cannot be restricted values of pattern such as following. UBL-RepresentationTerms-1.0-beta(IndicatorType).rng <define name="IndicatorType"> <ref name="IndicatorType" ns="urn:oasis:names:tc:ubl:CoreComponentParameters:1:0-beta" /> </define> We will translate restriction pattern of XML schema to comment text in Relax NG. We hope suggestion and advice for Relax NG schema. Thanks Naito
UBLv1-beta-RelaxNG-Samples.zip
----- Hiroshi Naito, Assistant Professor, Osaka Institute of Technology <http://www.oit.ac.jp/> 1-79-1, Kitayama, Hirakata-City, Osaka, 573-0196, Japan TEL: +81-72-866-5194 FAX: +81-72-866-8499, E-Mail: naitoh@is.oit.ac.jp
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]