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

This should cover W3C XML Schema, Relax NG and DTD related problems.
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

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

Post by sderrick »

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/cu ... ei_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: 264
Joined: Sat Jul 10, 2010 4:03 pm

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

Post by sderrick »

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

No joy....
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu »

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
zigyasu
Posts: 1
Joined: Mon Oct 29, 2018 1:22 pm

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

Post by zigyasu »

Can anyone please tell me how to render MathML into pdf.

When we try to generate PDF having Wiris Equation for download, the equation is not getting displayed properly as in the case of URL below.

Request you to help us fix this.

https://www.zigya.com/previous-year-pap ... 11174131/0
Radu
Posts: 9041
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu »

Hi,

I do not understand how this is related to the current forum thread. Do you have a custom XML document with an embedded MathML equation? Can you give me an example with how that looks like? Do you use a custom XSLT stylesheet to publish it to PDF?

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