ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* two problems with xml processing
@ 2013-01-11 16:56 Thomas A. Schmitz
  0 siblings, 0 replies; only message in thread
From: Thomas A. Schmitz @ 2013-01-11 16:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

I am encountering two problems with xml processing; minimal example 
below. My questions/observations:

1. How can I prevent every index term to be sorted under "x" (for 
\xmlflush)?

2. What is the readon that the \cite command displays this bizarre 
behavior and the list of references is empty when I use authornum as 
refcommand?

Thanks and all best!

Thomas

\setupbibtex[database=sample]

\setuppublications
             [refcommand=authornum]

\starttext

\startbuffer[demo]
<document>
   <p>Madame Bovary is a novel by Gustave <indexterm>Flaubert, 
Gustave</indexterm>Flaubert. This has been demonstrated in 
<citation>hh2010</citation> in 2010.</p>
</document>
\stopbuffer

\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{document|p|indexterm|citation}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:test}

\startxmlsetups xml:document
     \xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:p
     \xmlflush{#1}
     \par
\stopxmlsetups

\startxmlsetups xml:indexterm
	\index{\xmlflush{#1}}
\stopxmlsetups

\startxmlsetups xml:citation
	\cite[{\xmlflush{#1}}]
\stopxmlsetups

\xmlprocessbuffer{whatever}{demo}{}

\page

\placepublications[criterium=all]

\page

\placeregister[index]

\stoptext
___________________________________________________________________________________
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] only message in thread

only message in thread, other threads:[~2013-01-11 16:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-11 16:56 two problems with xml processing Thomas A. Schmitz

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).