ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: NTG-ConTeXt <ntg-context@ntg.nl>
Subject: Re: XML and empty line (DocBook)
Date: Sun, 04 Aug 2002 23:59:06 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20020804235501.02dd8a28@remote-1> (raw)
In-Reply-To: <20020803172213.A751@scaprea>

At 05:22 PM 8/3/2002 +0200, Simon Pepping wrote:

>Perhaps it is better not to require that an XML parser in TeX can do
>all these features right. It must be possible to rewrite the XML file
>as a 'normalized' file and submit that to the TeX parser. For example,
>it is possible to write a ContentHandler for a validating SAX parser
>that removes ignorable white space. Perhaps the same is possible with
>an XSLT script, but I am not sure if any XSLT processor does a
>validating parse. Such a procedure would get rid of ignorable white
>space, and it would resolve entities, thus making the work of a TeX
>parser much easier.

indeed, in some cases preprocessing is handy, for instance, i sometimes 
convert the 'verbatim cdata' things into code like:

<verbatim>
<line>...</line>

thereby not only gaining much more control over typography, but also 
getting cleaner source code.

I will provide some more cleanup, and esp when we have to deal with 
language specific typesetting, it makes sense to convert all non chars into 
entities (: => &colon; and alike, because this permits language dependent 
spacing). Some of our current project sdemands this kind of control, so you 
can expect some tools

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


  reply	other threads:[~2002-08-04 21:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-29 19:58 Tobias Burnus
2002-07-31 19:43 ` Simon Pepping
2002-07-31 21:21   ` Michael Wiedmann
2002-08-01  7:14     ` Hans Hagen
2002-08-01 19:07       ` Simon Pepping
2002-08-03 15:22   ` Simon Pepping
2002-08-04 21:59     ` Hans Hagen [this message]
     [not found] <Pine.LNX.4.44.0207292143240.13525-100000@warp9.physik.fu-b erlin.de>
2002-07-30  9:26 ` 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=5.1.0.14.1.20020804235501.02dd8a28@remote-1 \
    --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).