ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML-lookahead
@ 2006-08-27 12:50 Sjoerd Siebinga
  2006-08-27 12:56 ` XML-lookahead Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Sjoerd Siebinga @ 2006-08-27 12:50 UTC (permalink / raw)


Hi all,

Is it possible to use something like \doifnextcharelse for xml- 
environments or is there a clever work-around? I need to know what  
the next tag is in order to decide if a linebreak needs to be inserted.

For example:

\defineXMLenvironment [av] {} {} % linebreak unless followed by  
<liste>-tag
\defineXMLenvironment [liste] {} {\crlf} % always a linebreak


\startXMLdata

<av> text </av> <liste> 15 </liste>  <!-- \crlf -->


<av> text </av>  <!-- \crlf -->

\stopXMLdata




Regards,

Sjoerd

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

end of thread, other threads:[~2006-08-27 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-27 12:50 XML-lookahead Sjoerd Siebinga
2006-08-27 12:56 ` XML-lookahead Hans Hagen
2006-08-27 13:29   ` XML-lookahead Sjoerd Siebinga
2006-08-27 18:00     ` XML-lookahead Hans Hagen

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