mathml entities
-
- Posts: 4
- Joined: Wed Jan 09, 2013 1:03 am
mathml entities
Hi,
The following mathml works in oXygen as a standalone mathml file :
but when I try to embed it in a docbook equation I have an error because the ‾ entity is not known.
Is it possible to tell the docbook configuration where to find the mathml entities ?
Best regards,
Bulbab
The following mathml works in oXygen as a standalone mathml file :
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE m:math PUBLIC "-//W3C//DTD MathML 2.0//EN"
"http://www.w3.org/Math/DTD/mathml2/mathml2.dtd"[
<!ENTITY % MATHML.prefixed "INCLUDE">
<!ENTITY % MATHML.prefix "m">]>
<m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
<m:mover accent="true"><m:mrow><m:mi>aaaA</m:mi></m:mrow><m:mo>‾</m:mo></m:mover>
</m:math>
Code: Select all
<equation>
<m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="block">
<m:mover accent="true"><m:mrow><m:mi>aaaA</m:mi></m:mrow><m:mo>‾</m:mo></m:mover>
</m:math>
</equation>
Best regards,
Bulbab
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: mathml entities
Hi Bulbab,
In the Oxygen File->New dialog wizard there is a new file template called "Article with MathML" which references a DTD from:
OXYGEN_INSTALL_DIR/frameworks/docbook/4.3/dtd/dbmathml.dtd
You can open the referenced DTD and see how it is composed, it references both the Docbook 4.3 DTD and the Math ML DTDs.
You either need to use that one our build your custom DTD which references both the Docbook DTD and the MathML DTDs.
Or all your Docbook files could have a DOCTYPE like:
Regards,
Radu
In the Oxygen File->New dialog wizard there is a new file template called "Article with MathML" which references a DTD from:
OXYGEN_INSTALL_DIR/frameworks/docbook/4.3/dtd/dbmathml.dtd
You can open the referenced DTD and see how it is composed, it references both the Docbook 4.3 DTD and the Math ML DTDs.
You either need to use that one our build your custom DTD which references both the Docbook DTD and the MathML DTDs.
Or all your Docbook files could have a DOCTYPE like:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.docbook.org/xml/4.5/docbookx.dtd"[
<!ENTITY % equation.content "(alt?, (graphic|mediaobject|m:math)+)">
<!ENTITY % inlineequation.content "(alt?, (graphic|inlinemediaobject|m:math)+)">
<!-- tell the MathML DTD to do the right prefixing -->
<!ENTITY % NS.prefixed "INCLUDE">
<!ENTITY % MATHML.prefix "m">
<!ENTITY % NamespaceDecl.attrib "
xmlns:m
CDATA #FIXED 'http://www.w3.org/1998/Math/MathML'
">
<!-- You must also include the MathML DTD -->
<!ENTITY % mathml PUBLIC "-//W3C//DTD MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/mathml2.dtd">
%mathml;
]>
<article>
<title>Article Title</title>
<sect1>
<title>Section1 Title</title>
<para>Text</para>
<equation>
<m:math xmlns:m="http://www.w3.org/1998/Math/MathML" display="block">
<m:mover accent="true"><m:mrow><m:mi>aaaA</m:mi></m:mrow><m:mo>‾</m:mo></m:mover>
</m:math>
</equation>
</sect1>
</article>
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