← Prev in month ← Prev in thread
Next in thread → Next in month →

Examples of Relax NG schema of UBL

From
Hiroshi Naito <>
Date
2003-12-04T08:13:31+00:00
ID
Thread
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
← Prev in month ← Prev in thread
Next in thread → Next in month →