Re: TEI schema flawed?

ZdPo Ster <[email protected]>
Newsgroups gmane.comp.literature.sword.devel
Message-ID <CAC=ZCwwstqf8krq9BNMm-k-au+718JxJAdR=Z29z3K23rix9WQ@mail.gmail.com>
Replying to myself:

seems like change of xml header to:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="
http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng"
            schematypens="http://relaxng.org/ns/structure/1.0"
type="application/xml"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:id="TEI-test" xml:lang="sk">
 <teiHeader>
...

and using relaxng validation works (better) for me (:

From example file it produces error:

$ wget http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng
$ xmllint --noout --relaxng tei_all.rng file.tei.xml

<http://www.crosswire.org/OSIS/dcr.xsd:3>
file.tei.xml:50: element oVar: Relax-NG validity error : Did not expect
element oVar there
file.tei.xml:55: element oVar: Relax-NG validity error : Did not expect
element oVar there
file.tei.xml fails to validate

If I understood correctly
https://www.tei-c.org/Vault/P5/3.2.0/doc/tei-p5-doc/en/html/ref-oVar.html
*oVar* is depreciated (at least I can not find it in the latest version
documentation https://tei-c.org/release/doc/tei-p5-doc/en/html/DI.html)


Zdenko


On Wed, 9 Nov 2022 at 21:09, ZdPo Ster <[email protected]> wrote:

> I just try to validate example file from
> https://wiki.crosswire.org/TEI_Dictionaries and I got warnings:
>
> $ wget http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd
> $ xmllint --noout --schema teiP5osis.2.5.0.xsd file.tei.xml
>
> http://www.crosswire.org/OSIS/dcr.xsd:3: element import: Schemas parser
> warning : Element '{http://www.w3.org/2001/XMLSchema}import': Skipping
> import of schema located at '
> http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd' for the namespace '
> http://www.crosswire.org/2013/TEIOSIS/namespace', since this namespace
> was already imported with the schema located at 'teiP5osis.2.5.0.xsd'.
> http://www.crosswire.org/OSIS/examples.xsd:4: element import: Schemas
> parser warning : Element '{http://www.w3.org/2001/XMLSchema}import':
> Skipping import of schema located at '
> http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd' for the namespace '
> http://www.crosswire.org/2013/TEIOSIS/namespace', since this namespace
> was already imported with the schema located at 'teiP5osis.2.5.0.xsd'.
>
> Is there a schema that does not produce such warnings?
>
> BR,
>
> Zdenko
>
> On Wed, 10 Apr 2019 at 08:01, Peter von Kaehne <[email protected]> wrote:
>
>> I am trying to validate a couple of new TEI modules and am getting
>> error messages which seem to refer to our schema and not to the module
>> I am trying to test. But frankly, this is way above my head.
>>
>>
>> peter@peterdell:~/Biblestuff/clean/frebailly$ xmllint --noout --schema
>> http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd frebailly.tei.xml
>> http://www.crosswire.org/OSIS/examples.xsd:10: element complexType:
>> Schemas parser error : local complex type: The content model is not
>> determinist.
>> http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd:16645: element
>> complexType: Schemas parser error : local complex type: The content
>> model is not determinist.
>> http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd:16834: element
>> complexType: Schemas parser error : local complex type: The content
>> model is not determinist.
>> WXS schema http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd failed to
>> compile
>>
>> Any suggestions?
>>
>>
>>
>> _______________________________________________
>> sword-devel mailing list: [email protected]
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>>
>

_______________________________________________
sword-devel mailing list: [email protected]
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.