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 ___________________________________________________________________________________