* expansion in xml section heads
@ 2009-07-11 20:42 Thomas A. Schmitz
2009-07-12 13:39 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Thomas A. Schmitz @ 2009-07-11 20:42 UTC (permalink / raw)
To: mailing ConTeXt users list for
Hi all,
I'm not sure if this is a bug or a feature, but I'm still having
trouble understanding the new structure code. Here is a small example:
\startbuffer[test]
<auth>
<section>
<title><emph>MyTitle</emph></title>
<content>
Hello world
</content>
</section>
</auth>
\stopbuffer
\startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{auth|section|title|content|emph}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:mysetups}
\startxmlsetups xml:auth
\xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:section
\xmlflush{#1}\par \midaligned{\hl[5]}
\stopxmlsetups
\startxmlsetups xml:title
\section{\xmlflush{#1}}
\stopxmlsetups
\startxmlsetups xml:content
\xmlflush{#1}\par
\stopxmlsetups
\startxmlsetups xml:emph
{\bgroup\em \xmlflush{#1}\egroup}
\stopxmlsetups
\setuphead
[section]
[style=normal,
number=no,
expansion=yes,
page=yes]
\starttext
\xmlprocessbuffer{main}{test}{}
\stoptext
The title is not properly expanded though I have expansion=yes in my
setuphead. Am I doing something wrong?
All best
Thomas
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-12 13:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-11 20:42 expansion in xml section heads Thomas A. Schmitz
2009-07-12 13:39 ` 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).