ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Simon Pepping <spepping@scaprea.hobby.nl>
Subject: Re: ConTeXt, XML and verbatim
Date: Sat, 6 Sep 2003 17:49:32 +0200	[thread overview]
Message-ID: <20030906154932.GA1838@scaprea> (raw)
In-Reply-To: <20030903201826.GB21844@swordfish>

On Wed, Sep 03, 2003 at 02:18:27PM -0600, Matt Gushee wrote:
> On Wed, Sep 03, 2003 at 09:49:40PM +0200, Simon Pepping wrote:
> > > 
> > There are no verbatim environments in XML, and you cannot get literal
> > content. Instead, you can have tags, like your verbatim above, that
> > request line-oriented layout. programlisting is such a tag in Docbook.
> 
> That's correct with respect to elements--since XML deliberately avoids
> defining semantics for any element.  But you seem to be overlooking
> CDATA sections, which are more-or-less verbatim environments. The XML
> spec doesn't directly address the question of formatting in CDATA
> sections, but all characters are supposed to be output literally, and
> AFAIK that includes white space--hence all formatting should be
> preserved.

I specifically mean CDATA sections. CDATA sections do no more than
disabling markup. They do not say that this is verbatim, they do not
say that this should get a special layout, they do not say that white
space should be handled differently.

<p>This <![CDATA[is CDATA]]> and it does not mean a
thing. <![CDATA[Ben & Jerry]]> sell icecream. Ben &amp; Jerry do not
like to see their name in monotype font.

Regards, Simon

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl
home page: scaprea.hobby.nl

  parent reply	other threads:[~2003-09-06 15:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-03 14:09 Pawel Jackowski na WP
2003-09-03 19:49 ` Simon Pepping
2003-09-03 20:18   ` Matt Gushee
2003-09-04 19:09     ` Pawel Jackowski na Onet
2003-09-04 19:28       ` Hans Hagen
2003-09-04 19:31     ` Hans Hagen
2003-09-06 15:49     ` Simon Pepping [this message]
2003-09-04  6:49   ` ConTeXt, XML and verbatim -- thanks Pawel Jackowski na Onet
2003-09-04 18:59     ` Hans Hagen
2003-09-05  8:34       ` ConTeXt, XML and verbatim Pawel Jackowski na Onet

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=20030906154932.GA1838@scaprea \
    --to=spepping@scaprea.hobby.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).