ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xml with interaction fails in footnotes
@ 2010-03-14 23:12 Philipp Gesang
  2010-03-14 23:32 ` interaction fails with footnotes (was: xml with interaction fails in footnotes) Philipp Gesang
  0 siblings, 1 reply; 13+ messages in thread
From: Philipp Gesang @ 2010-03-14 23:12 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2370 bytes --]

Good evening all,


I'm experiencing a weird behaviour when using my module to transliterate
stuff in a footnote.  ConTeXt fails with an undefined control sequence
if an only if I switch on interaction.

The issue vanishes when I removing either the footnote environment or
the interaction or the transliteration or the tag with the text to be
transliterated.

In the following minimal example I specified the lines that will make
context process the file when commented out.  Please note that
everything works fine outside xml as the transliteration immediately
after “\starttext” demonstrates.

Thanks for any help,


Philipp

---8<--------------------------------------------------------------------------

\enabletrackers[xml.entities]
\enabletrackers[xml.parse]
\enabletrackers[xml.path]
\enabletrackers[xml.profile]
\enabletrackers[xml.remap]
\enabletrackers[lxml.access]
\enabletrackers[lxml.comments]
\enabletrackers[lxml.loading]
\enabletrackers[lxml.manipulations]
\enabletrackers[lxml.setups]

\setupinteraction[state=start]        %this one
\usemodule[transliterator]

\startxmlsetups xml:testsetups
    \xmlsetsetup{\xmldocument}{*}{-}
    \xmlsetsetup{\xmldocument}{
      body|
      content|
      trru|                           %this one
      fn|
      }{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:body
    \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:content
    \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:fn
    \startfootnote                    %this together with …
    \xmlflush{#1}
    \stopfootnote                     %… this one
\stopxmlsetups

\startxmlsetups xml:trru
  \starttransliterate                 %this together with …
    \xmlflush{#1}
  \stoptransliterate                  %… this one
\stopxmlsetups

\starttext

\transliterate{раз, два, три}

\startbuffer
<body>
    <content>
      Content to include with a footnote
      <fn>
      <trru>раз, два, три</trru>      %this one
      </fn>
    </content>
</body>
\stopbuffer

\xmlprocessbuffer{test}{}{}

\stoptext

---8<--------------------------------------------------------------------------

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2010-03-16 11:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-14 23:12 xml with interaction fails in footnotes Philipp Gesang
2010-03-14 23:32 ` interaction fails with footnotes (was: xml with interaction fails in footnotes) Philipp Gesang
2010-03-15  3:01   ` Curiouslearn
2010-03-15  7:00     ` Philipp Gesang
2010-03-15 13:10   ` interaction fails with footnotes Hans Hagen
2010-03-15 18:01     ` Philipp Gesang
2010-03-15 21:40       ` Wolfgang Schuster
2010-03-15 23:20         ` Philipp Gesang
2010-03-15 23:33           ` Wolfgang Schuster
2010-03-16  9:58             ` Philipp Gesang
2010-03-16 10:48               ` Wolfgang Schuster
2010-03-16 11:19                 ` Philipp Gesang
2010-03-16  8:48           ` 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).