ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Renaud AUBIN <aubin@nibua-r.org>
To: ntg-context@ntg.nl
Subject: Re: XML pretty printer?
Date: Sat, 13 Nov 2010 19:39:31 +0100	[thread overview]
Message-ID: <4CDEDB63.10306@nibua-r.org> (raw)
In-Reply-To: <4CDE92A4.4070004@nibua-r.org>


[-- Attachment #1.1: Type: text/plain, Size: 3037 bytes --]

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…

Feel free to improve…

Renaud

Le 13/11/2010 14:29, Renaud AUBIN a écrit :
> I'm currently working on my pret-xml… just implementing attributes parsing…
> I will upload that asap (even if my lua is… 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, …) 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 écrit :
>   
>> I was thinking of doing all the XML parsing in TeX/ConTeXt, so I was looking
>> 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 good
>> example.
>>
>> Thank you!
>> -pd
>>
>> On Sat, Nov 13, 2010 at 6:23 AM, Renaud AUBIN <aubin@nibua-r.org> wrote:
>>
>>   
>>     
>>>  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 XML file?
>>> Are considering to use directly lua to process your XML inputs? Sorry, but
>>> that's not clear to me… You are certainly aware of the fact that there is a
>>> plenty of SAX / XmlPulParser / CodeSynthesis Tree or parser samples around
>>> on the www.
>>>
>>> Renaud
>>>
>>>
>>> Le 12/11/2010 21:22, Peter Davis a écrit :
>>>
>>> Anybody have an XML pretty printer ConTeXt document?  That would make a
>>> great example of generic XML processing.
>>>
>>> Thanks,
>>> -pd
>>>
>>>
>>>
>>>     
>>>       
>>   
>>
>>
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
>>   
>>     
>
>   
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>   


[-- Attachment #1.2: Type: text/html, Size: 4673 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2010-11-13 18:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-12 20:22 Peter Davis
2010-11-13 11:13 ` Renaud AUBIN
2010-11-13 11:23 ` Renaud AUBIN
2010-11-13 12:52   ` Peter Davis
2010-11-13 13:28     ` Another Correspendence question Russell Urquhart
2010-11-13 17:10       ` Florian Wobbe
2010-11-13 21:46         ` Russell Urquhart
2010-11-13 13:29     ` XML pretty printer? Renaud AUBIN
2010-11-13 18:39       ` Renaud AUBIN [this message]
2010-11-13 20:18         ` Thomas Schmitz
2010-11-13 20:32           ` Renaud AUBIN
2010-11-13 20:40             ` Thomas Schmitz
2010-11-13 20:46               ` Renaud AUBIN
2010-11-14 22:54                 ` Renaud AUBIN
2010-11-20 19:40                   ` Renaud AUBIN
2010-11-20 20:11                     ` Renaud AUBIN
2010-11-20 21:43                       ` Renaud AUBIN
2010-11-21 11:58                     ` 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=4CDEDB63.10306@nibua-r.org \
    --to=aubin@nibua-r.org \
    --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).