This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: XSL implementation of DBTeXMath
- From: Rafael 'Dido' Sevilla <sevillar at team dot ph dot inter dot net>
- To: Allin Cottrell <cottrell at wfu dot edu>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 29 Jan 2002 12:45:23 +0800
- Subject: Re: DOCBOOK-APPS: XSL implementation of DBTeXMath
- References: <Pine.LNX.4.44.0201282326180.20679-100000@ricardo.ecn.wfu.edu>
On Mon, Jan 28, 2002 at 11:33:31PM -0500, Allin Cottrell wrote:
> The xsl version stumbles on some material that is OK in the sgml
> version. For example:
>
Of course it stumbles, because what you've presented below is completely
invalid XML. :)
> <informalequation>
> <alt>
> \begin{eqnarray*}
> y_t &=& \alpha + \beta(1/x_t) + \epsilon_t\\
^^^
In XML, all entities are introduced by an '&', and this does not form a
valid XML entity, which is why...
> This is processed fine by jade, but using saxon and xsl I get the
> error:
>
> Error on line 215 column 10 of
> file:/home/allin/stats/esl/gretl/doc/xml/appendices.xml:
> Error reported by XML parser: name expected (found "=")
> Transformation failed: Run-time errors were reported
>
> Line 215 contains the first occurrence of "&=&". Anyone know of a
> workaround for this?
>
Perhaps you can try replacing the literal & by the entity for a literal
&, i.e. &, or perhaps enclose your entire TeX equation in a CDATA
section:
<informalequation>
<alt>
<![CDATA[
\begin{eqnarray*}
y_t &=& \alpha + \beta(1/x_t) + \epsilon_t\\
y_t &=& \alpha + \beta x_t + \gamma x^2_t + \epsilon_t\\
y_t &=& \alpha + \beta \log x_t + \epsilon_t\\
\log y_t &=& \alpha + \beta \log x_t + \epsilon_t
\end{eqnarray*}
</alt>
<graphic fileref="figures/nonlin.png"/>
]]>
</informalequation>
Provided of course, that ]]> never appears inside your equation.
--
Rafael R. Sevilla <sevillar@team.ph.inter.net> +63(2) 8177746 ext. 8311
Programmer, Inter.Net Philippines +63(917) 4458925
http://dido.ph.inter.net/ OpenPGP Key ID: 0x5CDA17D8
Heute die Welt und Morgen das Sonnensystem!