From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13082 Path: main.gmane.org!not-for-mail From: "Pawel Jackowski na Onet" Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt, XML and verbatim Date: Thu, 4 Sep 2003 21:09:19 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <003501c37318$6b1f5250$0500a8c0@best> References: <000b01c37225$09c13800$0500a8c0@best> <20030903194940.GA2420@scaprea> <20030903201826.GB21844@swordfish> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1062703087 30002 80.91.224.253 (4 Sep 2003 19:18:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2003 19:18:07 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Sep 04 21:18:06 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19uzcM-0003hi-00 for ; Thu, 04 Sep 2003 21:18:06 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D64D110B86; Thu, 4 Sep 2003 21:17:59 +0200 (MEST) Original-Received: from smtp3.poczta.onet.pl (smtp3.poczta.onet.pl [213.180.130.29]) by ref.ntg.nl (Postfix) with ESMTP id 37B6210B85 for ; Thu, 4 Sep 2003 21:12:16 +0200 (MEST) Original-Received: from pa36.debniki.sdi.tpnet.pl ([213.77.147.36]:36358 "HELO best") by ps3.test.onet.pl with SMTP id ; Thu, 4 Sep 2003 21:11:39 +0200 Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13082 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13082 Hi! > On Wed, Sep 03, 2003 at 09:49:40PM +0200, Simon Pepping wrote: > > > > > > Meybe someone knowns how to 'translate' verbatim environments for XML code? > > > I mean how to define environment which I can use in this way [......] > > 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. > > But I don't know if ConTeXt can handle CDATA sections. Can it? Good question! As far as I'm concerned (but I'm not concerned far...) ConTeXt can handle some 'metadata' like . But I don't know exaclty which levels of XML syntax is handled with ConTeXt core. I hope Hans will provide some workshops :) Regards, Pawel