Oxygen complains about <p> tag following <div tag in TEI ?
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 269
- Joined: Sat Jul 10, 2010 4:03 pm
Oxygen complains about <p> tag following <div tag in TEI ?
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>
<?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>
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Oxygen complains about <p> tag following <div tag in TEI ?
Hi,
Oxygen just uses the TEI RNG Schema to validate the XML file.
And the TEI schema just does not allow <p> after <div>:
Maybe you can register on the TEI users list and ask this question there:
http://www.tei-c.org/Support/
Regards,
Radu
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"
http://www.tei-c.org/Support/
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 1
- Joined: Mon Oct 29, 2018 1:22 pm
Re: Oxygen complains about <p> tag following <div tag in TEI ?
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
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
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Oxygen complains about <p> tag following <div tag in TEI ?
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service