DR 09-182 WML: Handling of invalid uri values

MURATA Makoto (FAMILY Given) eb2m-mrt at asahi-net.or.jp
Sun Nov 28 06:55:18 CET 2010


Dear colleagues,

I regret that we did not check schemas very carefully.  While trying to 
store schema changes for this DR in the svn repository, I find some
problems again.

First, where should ST_Uri be defined?  I guess that it should 
appear in shared-commonSimpleTypes.xsd.

Second, what should be the definition?  I guess
  <xsd:simpleType name="ST_Uri">
    <xsd:restriction base="xsd:anyURI"/>
  </xsd:simpleType>

Third, which att definition should refernce to this new simple 
type?  There are quite a few attributes named "uri", and 
the current text in the final text for DR 09-182 enumerates 
those in wml.xsd only.  There are other attributes named "uri", 
although they occur in extension elements rather than custom XML or
smart tags.  I guess that we have to submit another DR for them.



bash-3.2$ grep -B4 \"uri\" *.xsd
dml-chart.xsd-  <xsd:complexType name="CT_Extension">
dml-chart.xsd-    <xsd:sequence>
dml-chart.xsd-      <xsd:any processContents="lax"/>
dml-chart.xsd-    </xsd:sequence>
dml-chart.xsd:    <xsd:attribute name="uri" type="xsd:token"/>
--
dml-main.xsd-  <xsd:complexType name="CT_OfficeArtExtension">
dml-main.xsd-    <xsd:sequence>
dml-main.xsd-      <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
dml-main.xsd-    </xsd:sequence>
dml-main.xsd:    <xsd:attribute name="uri" type="xsd:token" use="required"/>
--
dml-main.xsd-  <xsd:complexType name="CT_GraphicalObjectData">
dml-main.xsd-    <xsd:sequence>
dml-main.xsd-      <xsd:any minOccurs="0" maxOccurs="unbounded" processContents="strict"/>
dml-main.xsd-    </xsd:sequence>
dml-main.xsd:    <xsd:attribute name="uri" type="xsd:token" use="required"/>
--
pml.xsd-  <xsd:complexType name="CT_Extension">
pml.xsd-    <xsd:sequence>
pml.xsd-      <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
pml.xsd-    </xsd:sequence>
pml.xsd:    <xsd:attribute name="uri" type="xsd:token" use="required"/>
--
shared-customXmlDataProperties.xsd-  elementFormDefault="qualified" attributeFormDefault="qualified" blockDefault="#all">
shared-customXmlDataProperties.xsd-  <xsd:import namespace="http://purl.oclc.org/ooxml/officeDocument/sharedTypes"
shared-customXmlDataProperties.xsd-    schemaLocation="shared-commonSimpleTypes.xsd"/>
shared-customXmlDataProperties.xsd-  <xsd:complexType name="CT_DatastoreSchemaRef">
shared-customXmlDataProperties.xsd:    <xsd:attribute name="uri" type="xsd:string" use="required"/>
--
shared-customXmlSchemaProperties.xsd-  xmlns="http://purl.oclc.org/ooxml/schemaLibrary/main"
shared-customXmlSchemaProperties.xsd-  targetNamespace="http://purl.oclc.org/ooxml/schemaLibrary/main" attributeFormDefault="qualified"
shared-customXmlSchemaProperties.xsd-  elementFormDefault="qualified">
shared-customXmlSchemaProperties.xsd-  <xsd:complexType name="CT_Schema">
shared-customXmlSchemaProperties.xsd:    <xsd:attribute name="uri" type="xsd:string" default=""/>
--
sml.xsd-  <xsd:complexType name="CT_Extension">
sml.xsd-    <xsd:sequence>
sml.xsd-      <xsd:any processContents="lax"/>
sml.xsd-    </xsd:sequence>
sml.xsd:    <xsd:attribute name="uri" type="xsd:token"/>
--
wml.xsd-      <xsd:element name="sdtContent" type="CT_SdtContentRow" minOccurs="0" maxOccurs="1"/>
wml.xsd-    </xsd:sequence>
wml.xsd-  </xsd:complexType>
wml.xsd-  <xsd:complexType name="CT_Attr">
wml.xsd:    <xsd:attribute name="uri" type="s:ST_String"/>
--
wml.xsd-    <xsd:sequence>
wml.xsd-      <xsd:element name="customXmlPr" type="CT_CustomXmlPr" minOccurs="0" maxOccurs="1"/>
wml.xsd-      <xsd:group ref="EG_PContent" minOccurs="0" maxOccurs="unbounded"/>
wml.xsd-    </xsd:sequence>
wml.xsd:    <xsd:attribute name="uri" type="s:ST_String"/>
--
wml.xsd-    <xsd:sequence>
wml.xsd-      <xsd:element name="smartTagPr" type="CT_SmartTagPr" minOccurs="0" maxOccurs="1"/>
wml.xsd-      <xsd:group ref="EG_PContent" minOccurs="0" maxOccurs="unbounded"/>
wml.xsd-    </xsd:sequence>
wml.xsd:    <xsd:attribute name="uri" type="s:ST_String"/>
--
wml.xsd-    <xsd:sequence>
wml.xsd-      <xsd:element name="customXmlPr" type="CT_CustomXmlPr" minOccurs="0" maxOccurs="1"/>
wml.xsd-      <xsd:group ref="EG_ContentBlockContent" minOccurs="0" maxOccurs="unbounded"/>
wml.xsd-    </xsd:sequence>
wml.xsd:    <xsd:attribute name="uri" type="s:ST_String"/>
--
wml.xsd-    <xsd:sequence>
wml.xsd-      <xsd:element name="customXmlPr" type="CT_CustomXmlPr" minOccurs="0" maxOccurs="1"/>
wml.xsd-      <xsd:group ref="EG_ContentRowContent" minOccurs="0" maxOccurs="unbounded"/>
wml.xsd-    </xsd:sequence>
wml.xsd:    <xsd:attribute name="uri" type="s:ST_String"/>
--
wml.xsd-    <xsd:sequence>
wml.xsd-      <xsd:element name="customXmlPr" type="CT_CustomXmlPr" minOccurs="0" maxOccurs="1"/>
wml.xsd-      <xsd:group ref="EG_ContentCellContent" minOccurs="0" maxOccurs="unbounded"/>
wml.xsd-    </xsd:sequence>
wml.xsd:    <xsd:attribute name="uri" type="s:ST_String"/>
--
wml.xsd-    </xsd:sequence>
wml.xsd-  </xsd:complexType>
wml.xsd-  <xsd:complexType name="CT_CompatSetting">
wml.xsd-    <xsd:attribute name="name" type="s:ST_String"/>
wml.xsd:    <xsd:attribute name="uri" type="s:ST_String"/>
bash-3.2$ 

Cheers,
Makoto


More information about the sc34wg4 mailing list