ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xml parsing
@ 2008-11-28  8:43 Thomas A. Schmitz
  2008-11-28  9:22 ` Wolfgang Schuster
  2008-11-28  9:23 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas A. Schmitz @ 2008-11-28  8:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all, Hans,

this is a terribly inaccurate bug report, and I apologize for its  
form, but it's something you and other people might want to look at.  
Or maybe I should change my files, I don't know. Here comes:

SUMMARY

The new mkiv xml parser sometimes "eats" parts of my xml files when  
they are typeset. It appears to skip parts of text between two tags.

DESCRIPTION

I have no minimal example, just a description: for my lectures, I have  
defined a counter to tell me when I  want to show the next slide:

\definelabel[SlideNumber][headstyle=normal,way=bytext]

\define\sln{\color[red]{ [\nextSlideNumber]}}

For my xml files, I have wrapped this into a xml command:

\startxmlsetups xml:sln
	\sln
\stopxmlsetups

This works wonderfully in most cases. To make my source file more  
readable, I usually code

foo
<sln/>
bar

In this case, the xml parser SOMETIMES (not reproducibly,  
unfortunately) skips the "bar" part up to the next paragraph <p> tag.  
When I take away the line break and write

foo <sln/> bar

the "bar" part appears normally.

ANECDOTE

I write my lectures in xml so I can put them on a website for my  
students, and I deliver them from typeset notes. This happened to me  
last Tuesday. I had typeset and printed my notes, and then while  
lecturing realized that an entire paragraph was missing. I could ad- 
lib it, but this is not something you want to happen at an important  
job-talk...

ALl best

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2008-11-28 11:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-28  8:43 xml parsing Thomas A. Schmitz
2008-11-28  9:22 ` Wolfgang Schuster
2008-11-28 10:16   ` Thomas A. Schmitz
2008-11-28 11:02     ` Wolfgang Schuster
2008-11-28  9:23 ` Hans Hagen
2008-11-28  9:43   ` 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).