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

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

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: 223

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: 5876

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
zigyasu
Posts: 1

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

Mon Oct 29, 2018 1:25 pm

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: 5876

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

Mon Oct 29, 2018 1:42 pm

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

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 2 guests