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: [EMAIL PROTECTED]
home page: scaprea.hobby.nl

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to