[osis-core] odd error

Patrick Durusau osis-core@bibletechnologieswg.org
Mon, 13 Oct 2003 16:12:05 -0400


This is a multi-part message in MIME format.
--------------030705020808010704060103
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Guys,

Checking the next version with IBM's schema quality checker and it 
complains of:

> TYPE REFINEMENT ERROR : The basetype,
>                 http://www.bibletechnologies.net/2003/OSIS/namespace:osisRefType,
>                 is not an atomic simple type. Therefore, another type
>                 cannot be derived from it by LIST

Note that osisID has:

	<xs:simpleType name="osisIDType">
		       <xs:list itemType="osisIDRegex"/>
	</xs:simpleType>
	<xs:simpleType name="osisIDRegex">
		<xs:restriction base="xs:string">
			<xs:pattern 
value="(((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?:)?((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?(!((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?)?"/>
		</xs:restriction>
	</xs:simpleType>

No complaints from the checker but:

	<xs:simpleType name="osisRefType">
		       <xs:list itemType="osisRefRegex"/>
	</xs:simpleType>
	<xs:simpleType name="osisRefRegex">
		<xs:restriction base="xs:string">
			<xs:pattern 
value="(((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?:)?((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?(!((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?)?(@(cp\[(\p{Nd})*\]|s\[(\p{L}|\p{N})+\](\[(\p{N})+\])?))?(\-(((\p{L}|\p{N}|_)*)((\.(\p{L}|\p{N}|_)+)*))(!((\p{L}|\p{N}|_)+)((\.(\p{L}|\p{N}|_)+)*)?)?(@(cp\[(\p{Nd})*\]|s\[(\p{L}|\p{N})+\](\[(\p{N})+\])?))?)?"/>
		</xs:restriction>
	</xs:simpleType>

produces the error in question.

Also complains about the import of the xml namespace and attributes 
(space and lang associated with it). Error file attached.

Note that Topologi gives the same error on osisRefType but says that it 
is circular. No complaints from XMLSpy.

Will send it out this afternoon "as is" on the assumption I am missing 
something real obvious in the syntax.

Hope everyone is having a great day!

Patrick

-- 
Patrick Durusau
Director of Research and Development
Society of Biblical Literature
Patrick.Durusau@sbl-site.org
Chair, V1 - Text Processing: Office and Publishing Systems Interface
Co-Editor, ISO 13250, Topic Maps -- Reference Model

Topic Maps: Human, not artificial, intelligence at work!

--------------030705020808010704060103
Content-Type: text/xml;
 name="osisCore.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="osisCore.xml"

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="file:/C:/Programs/sqc2.0/ErrorReport.xsl"?>
<schemaAnalysis SchemaQualityCheckerVersion="2.0"
    anyWarningsRequestedToBeSuppressed="false" cost="10"
    haltAtFirstError="false" requireEachDocumentValid="false" schemaLanguageVersion="2001-05-02">
    <file fileNameWithoutPath="osisCore.1.9.3.xsd" filename="osisCore.1.9.3.xsd">
        <startdatetime>2003-10-13T15:51:33</startdatetime>
        <error severity="0" type="1">
            <source column="110" line="5"
                location="file:C:/Programs/sqc2.0/osisCore.1.9.3.xsd" locationWithoutPath="osisCore.1.9.3.xsd"/>
            <message>The namespace of &lt;xsd:import
                namespace=&quot;http://www.w3.org/XML/1998/namespace&quot;
                schemaLocation=&quot;http://www.w3.org/2001/xml.xsd&quot;/&gt;
                is not associated to any namespace prefix. </message>
        </error>
        <error severity="1" type="2">
            <source column="47" line="101"
                location="file:C:/Programs/sqc2.0/osisCore.1.9.3.xsd" locationWithoutPath="osisCore.1.9.3.xsd"/>
            <message>The global attribute lang is not found.  </message>
        </error>
        <error severity="1" type="2">
            <source column="51" line="103"
                location="file:C:/Programs/sqc2.0/osisCore.1.9.3.xsd" locationWithoutPath="osisCore.1.9.3.xsd"/>
            <message>The global attribute space is not found.  </message>
        </error>
        <error severity="1" type="2">
            <source column="47" line="2765"
                location="file:C:/Programs/sqc2.0/osisCore.1.9.3.xsd" locationWithoutPath="osisCore.1.9.3.xsd"/>
            <message>The global attribute lang is not found.  </message>
        </error>
        <error severity="1" type="2">
            <source column="47" line="2789"
                location="file:C:/Programs/sqc2.0/osisCore.1.9.3.xsd" locationWithoutPath="osisCore.1.9.3.xsd"/>
            <message>The global attribute lang is not found.  </message>
        </error>
        <error severity="1" type="2">
            <source column="42" line="2809"
                location="file:C:/Programs/sqc2.0/osisCore.1.9.3.xsd" locationWithoutPath="osisCore.1.9.3.xsd"/>
            <message>TYPE REFINEMENT ERROR : The basetype,
                http://www.bibletechnologies.net/2003/OSIS/namespace:osisRefType,
                is not an atomic simple type. Therefore, another type
                cannot be derived from it by LIST </message>
        </error>
        <enddatetime>2003-10-13T15:52:25</enddatetime>
    </file>
</schemaAnalysis>

--------------030705020808010704060103
Content-Type: text/xml;
 name="ErrorReport.xsl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ErrorReport.xsl"

<?xml version="1.0"?>
<!-- Licensed Materials - Property of IBM (C) Copyright IBM Corp. 2000, 2002 All Rights Reserved. -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		version="1.0">

      <xsl:variable name="simple">false</xsl:variable>

<xsl:include href="ErrorReport_Common.xsl"/>
	
</xsl:stylesheet>
--------------030705020808010704060103--