From: Hans Hagen <pragma@wxs.nl>
Subject: Re: XML-lookahead
Date: Sun, 27 Aug 2006 14:56:12 +0200 [thread overview]
Message-ID: <44F1966C.7060908@wxs.nl> (raw)
In-Reply-To: <D96D8542-B10D-4AC5-9A00-AA6E33C34246@gmail.com>
Sjoerd Siebinga wrote:
> 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.
>
there is a way to build a stack and look onto it but that's of no use here
> 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
>
maybe look back:
\disablemode[xml:linebreak]
\startsetups[xml:linebreak]
\doifmode{xml:linebreak}{\disablemode[xml:linebreak]\crlf}
\stopsetups
\defineXMLenvironment [av] {} {\ensablemode[xml:linebreak]}
\defineXMLenvironment [liste] {\setups[xml:linebreak]} {\crlf}
or sometign similar,
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2006-08-27 12:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-27 12:50 XML-lookahead Sjoerd Siebinga
2006-08-27 12:56 ` Hans Hagen [this message]
2006-08-27 13:29 ` XML-lookahead Sjoerd Siebinga
2006-08-27 18:00 ` XML-lookahead Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44F1966C.7060908@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).