[xml] xmllint reporting that a schema is empty

hi hi,

I am using libxml2-2.5.7 on solaris-2.6 (the recent version 2.5.8 fails to build
on my system) and doing my first steps with xml-schemas. Here is my setup in detail:
xmllint --version
xmllint: using libxml version 20507
   compiled with: FTP HTTP HTML C14N Catalog DocBook XPath XPointer XInclude
Iconv Unicode Regexps Automata Schemas

And here is what I am doing (see files attached):

xmllint --relaxng lightscene.xsd lightscene-example.xml
xmlRelaxNGParse: ./lightscene.xsd is empty
Relax-NG schema ./lightscene.xsd failed to compile
<?xml version="1.0"?>

For me this is surprising as the schema is not empty. Can anybody enlighten me,
why libxml2 is thinkig is it.

Many thanks
  Stefan Kost
      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 301166
|      ///           04277 Leipzig      04277 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" ?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
        <xsd:element name="lightscene">
                                <xsd:element name="scene" type="xsd:string"/>
<?xml version="1.0" ?>


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