[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: XSL implementation of DBTeXMath
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!
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC