Oxygen complains about <p> tag following <div tag in TEI ?

This should cover W3C XML Schema, Relax NG and DTD related problems.
sderrick
Posts: 210

Oxygen complains about <p> tag following <div tag in TEI ?

Sat Dec 25, 2010 6:42 am

Here is a sample of a simple TEI/XML document. The last <p>..</P> tag is flagged(red squiggly line) as not valid? It looks valid to me and teh TEI spec seems to say its valid?

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="xml"?>
<TEI
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt>
<sourceDesc>
<p>Information about the source</p>
</sourceDesc>
</fileDesc>
</teiHeader>
<text>
<body>
<div>
<p>Some text here.</p>
<div></div>
<p>WHY IS THIS WRONG IN OXYGEN?</p>
</div>
</body>
</text>
</TEI>
sderrick
Posts: 210

Re: Oxygen complains about <p> tag following <div tag in TEI ?

Sat Dec 25, 2010 7:21 am

I just upgraded to build 2010100114 hoping that would fix it.

No joy....
Radu
Posts: 5213

Re: Oxygen complains about <p> tag following <div tag in TEI ?

Mon Dec 27, 2010 11:23 am

Hi,

Oxygen just uses the TEI RNG Schema to validate the XML file.
And the TEI schema just does not allow <p> after <div>:

Code: Select all

Description: element "p" not allowed here; expected the element end-tag or element "addSpan", "alt", "altGrp", "anchor", "argument", "byline", "cb", "certainty", "closer", "damageSpan", "dateline", "delSpan", "div", "divGen", "docAuthor", "docDate", "epigraph", "fLib", "figure", "fs", "fvLib", "fw", "gap", "incident", "index", "interp", "interpGrp", "join", "joinGrp", "kinesic", "lb", "link", "linkGrp", "meeting", "milestone", "note", "pause", "pb", "postscript", "precision", "respons", "salute", "shift", "signed", "space", "span", "spanGrp", "timeline", "trailer", "vocal", "witDetail" or "writing"


Maybe you can register on the TEI users list and ask this question there:
http://www.tei-c.org/Support/

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests