ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xml processing in latest
@ 2021-04-21  6:45 Thomas A. Schmitz
  2021-04-21  8:34 ` denis.maier
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas A. Schmitz @ 2021-04-21  6:45 UTC (permalink / raw)
  To: ntg-context


Hi all,

the latest has some strange problems with xml processing. The example 
below shows an issue with itemize. In my real file, I also get pages 
that are filled only two thirds and rugged right instead of justified, 
but I haven't been able to reproduce this in a MWE. Maybe this one can 
give a start; I assume it's some fundamental typo somewhere.

All best

Thomas

\startbuffer[test]
<document>
   <p>test</p>
	<numbered>
		<item>
			one
		</item>
		<item>
			two
		</item>
	</numbered>
</document>
\stopbuffer

\startxmlsetups xml:testsetups
         \xmlsetsetup{#1}{*}{-}
	\xmlsetsetup{#1}{document|p|numbered|item}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:testsetups}

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

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

\startxmlsetups xml:numbered
	\startitemize [n]
		\xmlflush{#1}
	\stopitemize
\stopxmlsetups

\startxmlsetups xml:item
	\startitem
		\xmlflush{#1}
	\stopitem
\stopxmlsetups

\starttext
	\xmlprocessbuffer{main}{test}{}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-04-21  8:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21  6:45 xml processing in latest Thomas A. Schmitz
2021-04-21  8:34 ` denis.maier
2021-04-21  8:36   ` denis.maier
2021-04-21  8:39   ` 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).