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

* Re: xml processing in latest
  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
  0 siblings, 2 replies; 4+ messages in thread
From: denis.maier @ 2021-04-21  8:34 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 2387 bytes --]

Hi

What's the exact issue? 

I get the same results on my TeXLive version and on the latext lmtx:
ConTeXt  ver: 2020.01.26 18:34 MKIV beta  fmt: 2020.10.2  int: english/english
ConTeXt  ver: 2021.04.18 18:12 LMTX  fmt: 2021.4.20  int: english/english

And even with --luatex
ConTeXt  ver: 2021.04.18 18:12 MKIV  fmt: 2021.4.21  int: english/english

Always the result as attached.

Denis


> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Thomas A.
> Schmitz
> Gesendet: Mittwoch, 21. April 2021 08:45
> An: ntg-context@ntg.nl
> Betreff: [NTG-context] xml processing in latest
> 
> 
> 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
> __________________________________________________________
> _________________________

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 6047 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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

* Re: xml processing in latest
  2021-04-21  8:34 ` denis.maier
@ 2021-04-21  8:36   ` denis.maier
  2021-04-21  8:39   ` Thomas A. Schmitz
  1 sibling, 0 replies; 4+ messages in thread
From: denis.maier @ 2021-04-21  8:36 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 2907 bytes --]

Ah, now I see
ConTeXt  ver: 2021.04.20 18:45 LMTX  fmt: 2021.4.21  int: english/english
gives me the attached result.

Denis

> -----Ursprüngliche Nachricht-----
> Von: Maier, Denis Christian (UB)
> Gesendet: Mittwoch, 21. April 2021 10:34
> An: ntg-context@ntg.nl
> Betreff: AW: [NTG-context] xml processing in latest
> 
> Hi
> 
> What's the exact issue?
> 
> I get the same results on my TeXLive version and on the latext lmtx:
> ConTeXt  ver: 2020.01.26 18:34 MKIV beta  fmt: 2020.10.2  int: english/english
> ConTeXt  ver: 2021.04.18 18:12 LMTX  fmt: 2021.4.20  int: english/english
> 
> And even with --luatex
> ConTeXt  ver: 2021.04.18 18:12 MKIV  fmt: 2021.4.21  int: english/english
> 
> Always the result as attached.
> 
> Denis
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Thomas
> A.
> > Schmitz
> > Gesendet: Mittwoch, 21. April 2021 08:45
> > An: ntg-context@ntg.nl
> > Betreff: [NTG-context] xml processing in latest
> >
> >
> > 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
> >
> __________________________________________________________
> > _________________________

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 4844 bytes --]

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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

* Re: xml processing in latest
  2021-04-21  8:34 ` denis.maier
  2021-04-21  8:36   ` denis.maier
@ 2021-04-21  8:39   ` Thomas A. Schmitz
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas A. Schmitz @ 2021-04-21  8:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 4/21/21 10:34 AM, denis.maier@ub.unibe.ch wrote:
> Hi
> 
> What's the exact issue?


You're not using the latest version:

2021.04.20 18:45

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