<div dir="ltr"><div dir="ltr"><div>Replying to myself:</div><div><br></div><div>seems like change of xml header to:</div><div><br></div><div><span style="background-color:rgb(255,242,204)"><span style="font-family:monospace"><?xml version="1.0" encoding="UTF-8"?><br><?xml-model href="<a href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng">http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng</a>"<br> schematypens="<a href="http://relaxng.org/ns/structure/1.0">http://relaxng.org/ns/structure/1.0</a>" type="application/xml"?><br><TEI xmlns="<a href="http://www.tei-c.org/ns/1.0">http://www.tei-c.org/ns/1.0</a>" xml:id="TEI-test" xml:lang="sk"><br> <teiHeader></span></span></div><div><span style="background-color:rgb(255,242,204)"><span style="font-family:monospace">...</span></span></div><div><br></div><div>and using relaxng validation works (better) for me (:</div><div><br></div><div>From example file it produces error:</div><div><div>
<pre style="font-family:monospace,Courier;color:black;background-color:rgb(249,249,249);border:1px solid rgb(221,221,221);padding:1em;white-space:pre-wrap;line-height:1.3em;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">$ wget <a href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng">http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng</a>
$ xmllint --noout --relaxng tei_all.rng file.tei.xml
</pre>
</div><div></div><div></div><div><a href="http://www.crosswire.org/OSIS/dcr.xsd:3" target="_blank"></a></div>
</div><div>file.tei.xml:50: element oVar: Relax-NG validity error : Did not expect element oVar there<br>file.tei.xml:55: element oVar: Relax-NG validity error : Did not expect element oVar there<br>file.tei.xml fails to validate</div><div><br></div><div>If I understood correctly <a href="https://www.tei-c.org/Vault/P5/3.2.0/doc/tei-p5-doc/en/html/ref-oVar.html">https://www.tei-c.org/Vault/P5/3.2.0/doc/tei-p5-doc/en/html/ref-oVar.html</a> <b>oVar</b> is depreciated (at least I can not find it in the latest version documentation <a href="https://tei-c.org/release/doc/tei-p5-doc/en/html/DI.html">https://tei-c.org/release/doc/tei-p5-doc/en/html/DI.html</a>)</div><div><br></div><div><br></div><div>Zdenko<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 9 Nov 2022 at 21:09, ZdPo Ster <<a href="mailto:zdposter@gmail.com">zdposter@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I just try to validate example file from <a href="https://wiki.crosswire.org/TEI_Dictionaries" target="_blank">https://wiki.crosswire.org/TEI_Dictionaries</a> and I got warnings:</div><div><br></div><div>
<pre style="font-family:monospace,Courier;color:black;background-color:rgb(249,249,249);border:1px solid rgb(221,221,221);padding:1em;white-space:pre-wrap;line-height:1.3em;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">$ wget <a href="http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd" target="_blank">http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd</a>
$ xmllint --noout --schema teiP5osis.2.5.0.xsd file.tei.xml
</pre>
</div><div></div><div></div><div><a href="http://www.crosswire.org/OSIS/dcr.xsd:3" target="_blank">http://www.crosswire.org/OSIS/dcr.xsd:3</a>: element import: Schemas parser warning : Element '{<a href="http://www.w3.org/2001/XMLSchema%7Dimport" target="_blank">http://www.w3.org/2001/XMLSchema}import</a>': Skipping import of schema located at '<a href="http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd" target="_blank">http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd</a>' for the namespace '<a href="http://www.crosswire.org/2013/TEIOSIS/namespace" target="_blank">http://www.crosswire.org/2013/TEIOSIS/namespace</a>', since this namespace was already imported with the schema located at 'teiP5osis.2.5.0.xsd'.<br><a href="http://www.crosswire.org/OSIS/examples.xsd:4" target="_blank">http://www.crosswire.org/OSIS/examples.xsd:4</a>: element import: Schemas parser warning : Element '{<a href="http://www.w3.org/2001/XMLSchema%7Dimport" target="_blank">http://www.w3.org/2001/XMLSchema}import</a>': Skipping import of schema located at '<a href="http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd" target="_blank">http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd</a>' for the namespace '<a href="http://www.crosswire.org/2013/TEIOSIS/namespace" target="_blank">http://www.crosswire.org/2013/TEIOSIS/namespace</a>', since this namespace was already imported with the schema located at 'teiP5osis.2.5.0.xsd'.</div><div><br></div><div>Is there a schema that does not produce such warnings?</div><div><br></div><div>BR,</div><div><br></div><div>Zdenko<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 10 Apr 2019 at 08:01, Peter von Kaehne <<a href="mailto:refdoc@gmx.net" target="_blank">refdoc@gmx.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am trying to validate a couple of new TEI modules and am getting<br>
error messages which seem to refer to our schema and not to the module<br>
I am trying to test. But frankly, this is way above my head.<br>
<br>
<br>
peter@peterdell:~/Biblestuff/clean/frebailly$ xmllint --noout --schema<br>
<a href="http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd" rel="noreferrer" target="_blank">http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd</a> frebailly.tei.xml<br>
<a href="http://www.crosswire.org/OSIS/examples.xsd:10" rel="noreferrer" target="_blank">http://www.crosswire.org/OSIS/examples.xsd:10</a>: element complexType:<br>
Schemas parser error : local complex type: The content model is not<br>
determinist.<br>
<a href="http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd:16645" rel="noreferrer" target="_blank">http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd:16645</a>: element<br>
complexType: Schemas parser error : local complex type: The content<br>
model is not determinist.<br>
<a href="http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd:16834" rel="noreferrer" target="_blank">http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd:16834</a>: element<br>
complexType: Schemas parser error : local complex type: The content<br>
model is not determinist.<br>
WXS schema <a href="http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd" rel="noreferrer" target="_blank">http://www.crosswire.org/OSIS/teiP5osis.2.5.0.xsd</a> failed to<br>
compile<br>
<br>
Any suggestions?<br>
<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</blockquote></div>
</blockquote></div></div>