Re: [NTG-context] Error with XML and JS

2004-02-17 Thread Hans Hagen
At 00:56 17/02/2004, you wrote:
Hello,

Continuing the ConTeXt exploration with Hans's help:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01784.html

I'm trying to combine Hans's JS programming with XML processing but an 
error pops up
at the top of your document say:

  \useJSscripts[fld] % and/or others

this will load the script before xml mode is entered

(there are other ways, like usign a different special char regime)

Hans





-
  Hans Hagen | PRAGMA ADE/POD/CTS
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-
   information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Error with XML and JS

2004-02-16 Thread Gilles PĂ©rez-Lambert
Hello,

Continuing the ConTeXt exploration with Hans's help:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg01784.html

I'm trying to combine Hans's JS programming with XML processing but an error pops up:


%%%
javascript : loading script set fld
(/Users/gpl/texmf/tex/context/base/java-fld.tex
! Missing \endcsname inserted.
to be read again 
   \unhbox 
\leavevmode -\unhbox 
  [EMAIL PROTECTED] 
\fakeunderscore -\leavevmode 
  \hbox {\setbox \scratchbox \hbox {(}\scratchdi...

\_...fmmode \mathunderscore \else \textunderscore 
  \fi 
\XML:ent:tex-underscore ...tterunderscore \else \_
  \fi 
\ascii -Sanitized\getXMLentity {tex-underscore}
TeX\getXMLentity {tex-unders...
...
l.115 \stopJSpreamble
%%%


with the attached TeX file. There's some kind of interaction between the two modes. 
Without \start(stop)XMLdata, it works.

Thanks for your time,

Gilles, preparing the next demo of ConTeXt in June (Paris). :-)



xml-js.tex
Description: TeX document