Page 1 of 1

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

Posted: Sat Dec 25, 2010 6:42 am
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>

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

Posted: Sat Dec 25, 2010 7:21 am
by sderrick
I just upgraded to build 2010100114 hoping that would fix it.

No joy....

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

Posted: Mon Dec 27, 2010 11:23 am
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

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

Posted: Mon Oct 29, 2018 1:25 pm
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

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

Posted: Mon Oct 29, 2018 1:42 pm
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