Re: 'Re: "[xml] Unimplemented block at xmlschemas.c:4185 causes bus error"'



Hi Kasimier,

according to some posting, it might already be fixed in CVS. I run the lastest
release. Anyway attached are the files. I have left them unchanged as the files
are short anyway. For reference I've also attached the dc.xsd which normally is
fetched from the net.

many thanks for all the work you already have done on the xml schema component!

ciao
  Stefan

Kasimier Buchcik wrote:
Hi,

on 6/24/2004 6:50 PM Stefan Kost wrote:

xmllint --schema giml.xsd giml/gitkTemplate_message.xml

http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd:65: element attribute:
Schemas parser error : Schemas: attribute anonattr 5 reference lang not found
Unimplemented block at xmlschemas.c:4185
Schemas parser error : failed to import schema at location
http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd
Bus error (core dumped)



xmllint --version

xmllint: using libxml version 20610
  compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude
Iconv Unicode Regexps Automata Schemas

I was using this with libxml2-2.6.7 before and it was giving the same error, but
wasn't crashing.

Stefan


Could you send the files you used (or a modified version, that raises 
the crash) to the list?
If I remember accurately - and it was yersterday, so I should - Daniel 
fixed a bug in the import function, whitch crashed if the import file 
was not found. Maby the problem belongs into the same can, as yours.

Greetings,

Kasimier



-- 
      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 301166
|      ///           04277 Leipzig      04251 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
|           WWW      www.sonicpulse.de  www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE giml SYSTEM "http://gitk.sourceforge.net/giml.dtd";>
<!-- $Id: gitkTemplate_message.xml.in,v 1.11 2004/01/07 14:21:17 ensonic Exp $
 * @file   gitkTemplate_message.xml
 * @author Stefan Kost <ensonic users sf net>
 * @date   Thu Jan 17 11:22:38 2002
 * 
 * @brief  message dialog template
 * @ingroup gitkcore
 *
-->
<giml xmlns="http://gitk.sourceforge.net/";
        xmlns:dc="http://purl.org/dc/elements/1.1/";
        xmlns:i18n="http://apache.org/cocoon/i18n/2.0";
        >
  <dialog focus="ctrl">
    <meta>
      <dc:title><i18n:text>message</i18n:text></dc:title>
    </meta>
          <dialogwidgets>
        <dialogwidget id="Okay"/>
          </dialogwidgets>
    <widgetgroup>
      <widget id="Message" type="label"/>
    </widgetgroup>
  </dialog>
</giml>
<?xml version="1.0" ?>
<!--  
 * $Id: giml.xsd,v 1.3 2004/06/25 09:03:53 ensonic Exp $
 * @file   giml.xsd
 * @author Stefan Kost <ensonic users sf net>
 * @date   Thu Jun 24 17:28:26 MEST 2004
 * 
 * @brief  giml document schema definition
 * @ingroup gitkcore
 *
-->
<xs:schema targetNamespace="http://gitk.sourceforge.net/";
                xmlns="http://gitk.sourceforge.net/";
                xmlns:xs="http://www.w3.org/2001/XMLSchema";
                xmlns:dc="http://purl.org/dc/elements/1.1/";
                xmlns:i18n="http://apache.org/cocoon/i18n/2.0/";>
        <xs:annotation>
                This schema describes giml dialog sources 
  </xs:annotation>

  <xs:import namespace="http://purl.org/dc/elements/1.1/";
                schemaLocation="http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd";
        />
  <!--xs:import namespace="http://apache.org/cocoon/i18n/2.0/";
                schemaLocation="file://./i18n.xsd"
        /-->
 
 <!-- foreign namespace
         <xs:element name="title">
                        <xs:complexType mixed="true">
                                <xs:choice minOccurs="0" maxOccurs="unbounded">
                                </xs:choice>
                        </xs:complexType>
                </xs:element>
        
                <xs:element name="text">
                        <xs:complexType mixed="true"></xs:complexType>
                </xs:element>
 -->
        
        <xs:element name="option">
                <xs:complexType mixed="true">
                        <xs:choice minOccurs="0" maxOccurs="unbounded"></xs:choice>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="options">
                <xs:complexType>
                        <xs:sequence minOccurs="0" maxOccurs="unbounded">
                                <xs:element ref="option"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="disabled">
                <xs:complexType mixed="true"></xs:complexType>
        </xs:element>
        
        <xs:element name="required">
                <xs:complexType mixed="true"></xs:complexType>
        </xs:element>
        
        <xs:element name="value">
                <xs:complexType mixed="true"></xs:complexType>
        </xs:element>
        
        <xs:element name="label">
                <xs:complexType mixed="true">
                        <xs:choice minOccurs="0" maxOccurs="1"></xs:choice>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="widget">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="meta" minOccurs="0"/>
                                <xs:element ref="label" minOccurs="0"/>
                                <xs:element ref="disabled" minOccurs="0"/>
                                <xs:element ref="value" minOccurs="0"/>
                                <xs:element ref="options" minOccurs="0"/>
                        </xs:sequence>
                        <xs:attribute name="id" type="xs:ID"/>
                        <xs:attribute name="type" default="action">
                                <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                                <xs:enumeration value="action"/>
                                                <xs:enumeration value="characterinput"/>
                                                <xs:enumeration value="characterinput_numeric"/>
                                                <xs:enumeration value="characterinput_alphabetic"/>
                                                <xs:enumeration value="optionchoice"/>
                                                <xs:enumeration value="optionchoice_boolean"/>
                                                <xs:enumeration value="optionchoice_single"/>
                                                <xs:enumeration value="optionchoice_single_compact"/>
                                                <xs:enumeration value="label"/>
                                        </xs:restriction>
                                </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="hasFocus" default="false">
                                <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                                <xs:enumeration value="true"/>
                                                <xs:enumeration value="false"/>
                                        </xs:restriction>
                                </xs:simpleType>
                        </xs:attribute>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="widgetgroup">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="meta" minOccurs="0"/>
                                <xs:element ref="label" minOccurs="0"/>
                                <xs:element ref="widget" minOccurs="0" maxOccurs="unbounded"/>
                                <xs:element ref="widgetgroup" minOccurs="0" maxOccurs="unbounded"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="dialogwidget">
                <xs:complexType mixed="true">
                        <xs:attribute name="id" type="xs:ID"/>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="dialogwidgets">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="dialogwidget" maxOccurs="unbounded"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="meta">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="dc:title"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="dialog">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="meta" minOccurs="0" maxOccurs="1"/>
                                <xs:element ref="dialogwidgets" minOccurs="0" maxOccurs="1"/>
                                <xs:element ref="widgetgroup" minOccurs="1" maxOccurs="unbounded"/>
                        </xs:sequence>
                        <xs:attribute name="id" type="xs:ID"/>
                        <xs:attribute name="focus" default="main">
                                <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                                <xs:enumeration value="main"/>
                                                <xs:enumeration value="ctrl"/>
                                        </xs:restriction>
                                </xs:simpleType>
                        </xs:attribute>
                </xs:complexType>
        </xs:element>
        
        <xs:element name="giml">
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="dialog" minOccurs="1" maxOccurs="1"/>
                        </xs:sequence>
                        <!--xs:attribute name="xmlns" type="xs:string" 
fixed="http://gitk.sourceforge.net/"/-->
                </xs:complexType>
        </xs:element>

</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
           xmlns="http://purl.org/dc/elements/1.1/";
           targetNamespace="http://purl.org/dc/elements/1.1/";
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">

  <xs:annotation>
    <xs:documentation xml:lang="en">
      DCMES 1.1 XML Schema
      XML Schema for http://purl.org/dc/elements/1.1/ namespace

      Created 2003-04-02

      Created by 

      Tim Cole (t-cole3 uiuc edu)
      Tom Habing (thabing uiuc edu)
      Jane Hunter (jane dstc edu au)
      Pete Johnston (p johnston ukoln ac uk),
      Carl Lagoze (lagoze cs cornell edu)

      This schema declares XML elements for the 15 DC elements from the
      http://purl.org/dc/elements/1.1/ namespace.

      It defines a complexType SimpleLiteral which permits mixed content 
      and makes the xml:lang attribute available. It disallows child elements by
      use of minOcccurs/maxOccurs.

      However, this complexType does permit the derivation of other complexTypes
      which would permit child elements.

      All elements are declared as substitutable for the abstract element any, 
      which means that the default type for all elements is dc:SimpleLiteral.

    </xs:documentation>

  </xs:annotation>


  <xs:import namespace="http://www.w3.org/XML/1998/namespace";
             schemaLocation="http://www.w3.org/2001/03/xml.xsd";>
  </xs:import>

  <xs:complexType name="SimpleLiteral">
        <xs:annotation>
        <xs:documentation xml:lang="en">
            This is the default type for all of the DC elements.
            It permits text content only with optional
            xml:lang attribute.
            Text is allowed because mixed="true", but sub-elements
            are disallowed because minOccurs="0" and maxOccurs="0" 
            are on the xs:any tag.

            This complexType allows for restriction or extension permitting
            child elements.
        </xs:documentation>
        </xs:annotation>

   <xs:complexContent mixed="true">
    <xs:restriction base="xs:anyType">
     <xs:sequence>
      <xs:any processContents="lax" minOccurs="0" maxOccurs="0"/>
     </xs:sequence>
     <xs:attribute ref="xml:lang" use="optional"/>
    </xs:restriction>
   </xs:complexContent>
  </xs:complexType>

  <xs:element name="any" type="SimpleLiteral" abstract="true"/>

  <xs:element name="title" substitutionGroup="any"/>
  <xs:element name="creator" substitutionGroup="any"/>
  <xs:element name="subject" substitutionGroup="any"/>
  <xs:element name="description" substitutionGroup="any"/>
  <xs:element name="publisher" substitutionGroup="any"/>
  <xs:element name="contributor" substitutionGroup="any"/>
  <xs:element name="date" substitutionGroup="any"/>
  <xs:element name="type" substitutionGroup="any"/>
  <xs:element name="format" substitutionGroup="any"/>
  <xs:element name="identifier" substitutionGroup="any"/>
  <xs:element name="source" substitutionGroup="any"/>
  <xs:element name="language" substitutionGroup="any"/>
  <xs:element name="relation" substitutionGroup="any"/>
  <xs:element name="coverage" substitutionGroup="any"/>
  <xs:element name="rights" substitutionGroup="any"/>

  <xs:group name="elementsGroup">
        <xs:annotation>
        <xs:documentation xml:lang="en">
            This group is included as a convenience for schema authors
            who need to refer to all the elements in the 
            http://purl.org/dc/elements/1.1/ namespace.
        </xs:documentation>
        </xs:annotation>

  <xs:sequence>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="any"/>
    </xs:choice>
    </xs:sequence>
  </xs:group>

  <xs:complexType name="elementContainer">
        <xs:annotation>
        <xs:documentation xml:lang="en">
                This complexType is included as a convenience for schema authors who need to define a root
                or container element for all of the DC elements.
        </xs:documentation>
        </xs:annotation>

    <xs:choice>
      <xs:group ref="elementsGroup"/>
    </xs:choice>
  </xs:complexType>


</xs:schema>

Attachment: kost.vcf
Description: Vcard



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]