Attributes with quotes within entities

Soren Kuula

Usenet Archive
Joined
Dec 14, 2003
Messages
168
Reaction score
0
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
 

Richard Tobin

Usenet Archive
Joined
Jan 6, 2000
Messages
4,251
Reaction score
0

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

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top