ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xml again
@ 2001-11-24 16:46 Patrick Gundlach
  2001-11-26  9:12 ` Taco Hoekwater
  2001-11-26 14:22 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: Patrick Gundlach @ 2001-11-24 16:46 UTC (permalink / raw)


Hi!

I am currently using the xml stuff (again). It is so great!!! But there is 
one little problem:
I have a line like this in my xml file:
[...]

<technote longname="/Volumes/Share/pub/tn/tn1051_conic_splines" 
   shortname="tn1051_conic_splines.pdf" refname="tn1051_conic_splines"/>
[...]

and my tex-file looks like this:
--------------------------------
\setupexternalfigures[directory=/Volumes/Share/pub/tn/]

\defineoverlay[original][\overlaybutton{originaldest}]
\def\mytechnote{%
  \useexternaldocument[\XMLpar{technote}{refname}{}]
                      [\XMLpar{technote}{longname}{}]
  \definereference[originaldest][\XMLpar{technote}{refname}{}::]
  \framed[background=original,strut=no,offset=overlay]{%
    \externalfigure[\XMLpar{technote}{shortname}{}]%
                   [page=1,height=\textheight]}}
\defineXMLcommand [technote] \mytechnote

\starttext
\processXMLfilegrouped {filename.xml}
\stoptext
------------------------------------
and TeX gives me an error:
! Missing \endcsname inserted.
<to be read again> 
                   \unhbox 
\leavevmode ->\unhbox 
                      \voidb@x 
\_->\leavevmode 
                \kern .06em \vbox {\hrule width.3em}
\XML:ent:tex-underscore ...tterunderscore \else \_
                                                  \fi 
\XML:var:technote:refname ->tn1051_
                                   conic_splines
\XMLpar ...csname \@@XMLvariable :#1:#2\endcsname 
                                                  \else #3\fi 
...
l.51 ...ines.pdf" refname="tn1051_conic_splines"/>

it helps when I change things in xtags-ini.tex

[...] 
.unexpanded.gdef.enableXML*
[...]
   .catcode`._=.@@other* 
[...]
*   .catcode`._=.@@active .def_B&tex-underscore;E*
[...]

and recreate the format.

So it works for me, but I do not know if this is the preferred way to go.

Patrick, who is enjoying ConTeXt on his new iBook with MacOS X :-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-11-26 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-24 16:46 xml again Patrick Gundlach
2001-11-26  9:12 ` Taco Hoekwater
2001-11-26 14:22 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).