ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: two problems with xml processing
Date: Fri, 11 Jan 2013 17:56:19 +0100	[thread overview]
Message-ID: <50F04433.3090906@uni-bonn.de> (raw)

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
___________________________________________________________________________________


                 reply	other threads:[~2013-01-11 16:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50F04433.3090906@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).