ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andrea Valle <valle@di.unito.it>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: xml misc
Date: Fri, 2 Nov 2007 21:18:25 +0100	[thread overview]
Message-ID: <8C262DF3-59E5-45A9-A56F-FE365C16DF0A@di.unito.it> (raw)
In-Reply-To: <fe8d59da0710312147r3c14337ega0400b979d69a05@mail.gmail.com>


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

Ciao Luigi,

grazie.
I didn't know about lxml. Very goo dto know.
But the idea was to "stay inside" ConTeXt so to be able to generate  
the pdf from inside SuperCollider using the provided  interface to bash.
I'd like to consider luatex, but I'm only a bit scaredby
- installation issued (so I'm waitin for a TeXlive release)
- documentation. (where's lxml_in_luatex documentation? I guess in  
sources)

Best

-a-




On 1 Nov 2007, at 05:47, luigi scarso wrote:

> On 11/1/07, Andrea Valle <valle@di.unito.it> wrote:
>> Hi to all,
>>
>> I' ve started playing with xml --> context.
>> I've read the docs but even if I am able to do some very basic  
>> operation I'm
>> in troubles doing my first real experiment.
>>
>> I've  already generated a book from the collection of html help  
>> files of the
>> SuperCollider language using a cumbersome python script.
>> But I was guessing that probably using xml mapping would make my life
>> easier.
>
> Indeed, lxml under python is a cool module.
> See
> http://codespeak.net/lxml/
> lxml_in_python  implements also full xpath/xslt
>
>> An example file  to be processed is here:
>
> Please ,if you can, consider luatex+context mkiv; in base folder see
> l-xml-edu.lua  lxml-ini.lua  lxml-ini.tex  l-xml.lua
> (warning : lxml here has nothing to do with lxml in python, only  
> the same names)
> I believe that actually lxml_in_luatex does not implements a full  
> xpath/xslt,
> because  not always these are useful in this context.
>
> (If I need a full xpath/xslthere here, then I have a too much complex
> xml document, and I preprocessing it with lxml_in_python)
>
> With lxml_in_python_ and lxml_in_luatex_
> you can solve all ** reasonable ** problems.
> Sometimes only lxml_in_python is need, sometimes only  
> lxm_in_luatex, it depends.
>
> -- 
> luigi
> ______________________________________________________________________ 
> _____________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ______________________________________________________________________ 
> _____________

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> andrea.valle@unito.it
--------------------------------------------------


I did this interview where I just mentioned that I read Foucault. Who  
doesn't in university, right? I was in this strip club giving this  
guy a lap dance and all he wanted to do was to discuss Foucault with  
me. Well, I can stand naked and do my little dance, or I can discuss  
Foucault, but not at the same time; too much information.
(Annabel Chong)





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

[-- Attachment #2: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2007-11-02 20:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01  0:25 Andrea Valle
2007-11-01  4:47 ` luigi scarso
2007-11-02 20:18   ` Andrea Valle [this message]
2007-11-02 22:13     ` luigi scarso
2007-11-05 15:46       ` docs in source, was " Andrea Valle
2007-11-01  8:23 ` Hans Hagen
2007-11-02 20:20   ` Andrea Valle
2007-11-03 11:25     ` luigi scarso
2007-11-05 15:40       ` Andrea Valle

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=8C262DF3-59E5-45A9-A56F-FE365C16DF0A@di.unito.it \
    --to=valle@di.unito.it \
    --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).