Hi,

 

I have an xml setup like the one below. In my real document the qquads in
xml:index-entry don't appear, but I haven't been able to reproduce the
problem in the MWE. What could be the cause of such an issue?

 

I don't know if this is helpful, but I had to change the line

\xmlfilter{#1}{/term/command(xml:term)}\qquad\xmlfilter{#1}{/loc/command(xml
:loc)}

to

\xmlfilter{#1}{/term/command(xml:term)} -\qquad-
\xmlfilter{#1}{/loc/command(xml:loc)}

to make the qquad appear.

 

Best,

Denis

 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startxmlsetups xml:test

  \xmlsetsetup{#1}{*}{-}

  \xmlsetsetup{#1}{index|index-entry}{xml:*}

\stopxmlsetups

 

\xmlregisterdocumentsetup{test}{xml:test}

 

\definestartstop [Index] 

                [

                before={%

                \startnarrower[left]%

 
\setupalign[flushleft,verytolerant,extremestretch,nohz,nothanging]

                \setupindenting[-\leftskip,yes,first]%

                \setuphead[section][indentnext=yes]%

                },

                after=\stopnarrower,

                ]

 

\startxmlsetups xml:index

  \startIndex

    \xmlflush{#1}

  \stopIndex

\stopxmlsetups

 

\startxmlsetups xml:index-entry

  \startparagraph

 
\xmlfilter{#1}{/term/command(xml:term)}\qquad\xmlfilter{#1}{/loc/command(xml
:loc)}

  \stopparagraph

\stopxmlsetups

 

    

\startxmlsetups xml:term

  \xmlflush{#1}

\stopxmlsetups

    

\startxmlsetups xml:loc

  \xmlflush{#1}

\stopxmlsetups

 

\startbuffer[test]

<?xml version="1.0" encoding="UTF-8"?>

<index>

  <index-entry>

    <term>asdf</term>

    <loc>1</loc>

  </index-entry>

</index>

\stopbuffer

 

\starttext

 

\xmlprocessbuffer{test}{test}{}

 

\stoptext

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to