From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/63477 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: Re: XML pretty printer? Date: Sat, 13 Nov 2010 19:39:31 +0100 Message-ID: <4CDEDB63.10306@nibua-r.org> References: <4CDE7534.5070005@nibua-r.org> <4CDE92A4.4070004@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0829855172==" X-Trace: dough.gmane.org 1289673600 24445 80.91.229.12 (13 Nov 2010 18:40:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Nov 2010 18:40:00 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 13 19:39:55 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PHL11-0001Yv-CB for gctc-ntg-context-518@m.gmane.org; Sat, 13 Nov 2010 19:39:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2EE07CA83E; Sat, 13 Nov 2010 19:39:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id D+EuyvtyhXLY; Sat, 13 Nov 2010 19:39:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB358CA83A; Sat, 13 Nov 2010 19:39:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2DD1CA82F for ; Sat, 13 Nov 2010 19:39:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ehu9v47+vUsX for ; Sat, 13 Nov 2010 19:39:47 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C91B2CA829 for ; Sat, 13 Nov 2010 19:39:47 +0100 (CET) Original-Received: from 64.mail-out.ovh.net (64.mail-out.ovh.net [91.121.185.65]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id oADIdbtF002360 for ; Sat, 13 Nov 2010 19:39:38 +0100 Original-Received: (qmail 9532 invoked by uid 503); 13 Nov 2010 18:26:40 -0000 Original-Received: from b9.ovh.net (HELO mail32.ha.ovh.net) (213.186.33.59) by 64.mail-out.ovh.net with SMTP; 13 Nov 2010 18:26:40 -0000 Original-Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 13 Nov 2010 20:39:36 +0200 Original-Received: from cha78-4-88-178-141-145.fbx.proxad.net (HELO ?192.168.78.1?) (aubin%nibua-r.org@88.178.141.145) by ns0.ovh.net with SMTP; 13 Nov 2010 20:39:34 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 In-Reply-To: <4CDE92A4.4070004@nibua-r.org> X-Ovh-Tracer-Id: 15809323543029355277 X-Ovh-Remote: 88.178.141.145 (cha78-4-88-178-141-145.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=91.121.185.65; country=FR; latitude=46.0000; longitude=2.0000; http://maps.google.com/maps?q=46.0000,2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DuGDB2r - 0aa934ff7401 - 20101113 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:63477 Archived-At: This is a multi-part message in MIME format. --===============0829855172== Content-Type: multipart/alternative; boundary="------------090304010806080208030103" This is a multi-part message in MIME format. --------------090304010806080208030103 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi folks, My custom XML pretty printer: http://www.nibua-r.org/gitsnap/pret-xml/ A direct link to the sample: http://www.nibua-r.org/gitsnap/pret-xml/pret-xml_test.pdf I'm sorry, the lua code is quite bad but I will improve it as soon as I will figure out how to implement functors=E2=80=A6 Feel free to improve=E2=80=A6 Renaud Le 13/11/2010 14:29, Renaud AUBIN a =C3=A9crit : > I'm currently working on my pret-xml=E2=80=A6 just implementing attribu= tes parsing=E2=80=A6 > I will upload that asap (even if my lua is=E2=80=A6 really bad ;) ) > > My two cents: depending of the complexity of the underlying data model > tranported by your xml medium, you should consider another tool > (xsltproc, saxon, xsdcxx, =E2=80=A6) and integrate it in your productio= n chain. > > Could you describe in detail what your need is (in or off-list)? > > Renaud > > Le 13/11/2010 13:52, Peter Davis a =C3=A9crit : > =20 >> I was thinking of doing all the XML parsing in TeX/ConTeXt, so I was l= ooking >> for examples of that. I'm still trying to learn my way around ConTeXt= , and >> XML handling in particular, so I thought a pretty printer would be a g= ood >> example. >> >> Thank you! >> -pd >> >> On Sat, Nov 13, 2010 at 6:23 AM, Renaud AUBIN wrot= e: >> >> =20 >> =20 >>> Some precision. I don't think you could consider any pret-xml.lua as= an >>> example of XML processing. What processing would you apply to your XM= L file? >>> Are considering to use directly lua to process your XML inputs? Sorry= , but >>> that's not clear to me=E2=80=A6 You are certainly aware of the fact t= hat there is a >>> plenty of SAX / XmlPulParser / CodeSynthesis Tree or parser samples a= round >>> on the www. >>> >>> Renaud >>> >>> >>> Le 12/11/2010 21:22, Peter Davis a =C3=A9crit : >>> >>> Anybody have an XML pretty printer ConTeXt document? That would make= a >>> great example of generic XML processing. >>> >>> Thanks, >>> -pd >>> >>> >>> >>> =20 >>> =20 >> =20 >> >> >> ______________________________________________________________________= _____________ >> If your question is of interest to others as well, please add an entry= to the Wiki! >> >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg= -context >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ______________________________________________________________________= _____________ >> =20 >> =20 > > =20 > > > _______________________________________________________________________= ____________ > If your question is of interest to others as well, please add an entry = to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-= context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _______________________________________________________________________= ____________ > =20 --------------090304010806080208030103 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi folks,

My custom XML pretty printer: http://www.nibua-r.org/gitsnap/= pret-xml/
A direct link to the sample: http://www.nibua-r.org/gitsnap/pret-xml/pret= -xml_test.pdf

I'm sorry, the lua code is quite bad but I will improve it as soon as I will figure out how to implement functors=E2=80=A6

Feel free to improve=E2=80=A6

Renaud

Le 13/11/2010 14:29, Renaud AUBIN a =C3=A9crit=C2=A0:
I'm currently working on my pret-xml=E2=80=A6 just imple=
menting attributes parsing=E2=80=A6
I will upload that asap (even if my lua is=E2=80=A6 really bad ;) )

My two cents: depending of the complexity of the underlying data model
tranported by your xml medium, you should consider another tool
(xsltproc, saxon, xsdcxx, =E2=80=A6) and integrate it in your production =
chain.

Could you describe in detail what your need is (in or off-list)?

Renaud

Le 13/11/2010 13:52, Peter Davis a =C3=A9crit :
  
I was thinking of doing all the XML parsing in TeX/Con=
TeXt, so I was looking
for examples of that.  I'm still trying to learn my way around ConTeXt, a=
nd
XML handling in particular, so I thought a pretty printer would be a good
example.

Thank you!
-pd

On Sat, Nov 13, 2010 at 6:23 AM, Renaud AUBIN <aubin@nibua-r.org> w=
rote:

 =20
    
 Some precision. I don't think you could consider an=
y pret-xml.lua as an
example of XML processing. What processing would you apply to your XML fi=
le?
Are considering to use directly lua to process your XML inputs? Sorry, bu=
t
that's not clear to me=E2=80=A6 You are certainly aware of the fact that =
there is a
plenty of SAX / XmlPulParser / CodeSynthesis Tree or parser samples aroun=
d
on the www.

Renaud


Le 12/11/2010 21:22, Peter Davis a =C3=A9crit :

Anybody have an XML pretty printer ConTeXt document?  That would make a
great example of generic XML processing.

Thanks,
-pd



   =20
      
 =20


_________________________________________________________________________=
__________
If your question is of interest to others as well, please add an entry to=
 the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/m=
ailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextre=
v/
wiki     : http://contextgarden.net
_________________________________________________________________________=
__________
 =20
    

  
_________________________________________________________________________= __________ If your question is of interest to others as well, please add an entry to= the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/m= ailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextre= v/ wiki : http://contextgarden.net _________________________________________________________________________= __________

--------------090304010806080208030103-- --===============0829855172== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0829855172==--