Attributes with quotes within entities

S

Soren Kuula

Hi,

I'm writing some DocBook with lots of math formulae. For every
mathematical expression in my document, I have to enclose it in :

<math xmlns="http://www.w3.org/1998/Math/MathML">
blah
</math>

so I thought of declaring entities in the DTD extension so I can just use

&mathbegin;
blah
&mathend

Problem is, how do I declare there ?

<!ENTITY mathbegin <math xmlns="http://www.w3.org/1998/Math/MathML">>

<!ENTITY mathbegin '<math xmlns="http://www.w3.org/1998/Math/MathML">'>

<!ENTITY mathbegin "<math xmlns='http://www.w3.org/1998/Math/MathML'>">

<!ENTITY mathbegin "<math xmlns="http://www.w3.org/1998/Math/MathML">">

<!ENTITY mathbegin "<math
xmlns=&quot;http://www.w3.org/1998/Math/MathML&quot;>">

all don't work (with Xalan). The problem seems to be the quotes in the
text I want to declare an entity for ...

Surely there must be a solution ...

Soren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top