Re: [NTG-context] xmlfiles and url address
Am 05.01.2012 13:36, schrieb Hans Hagen: > On 5-1-2012 09:19, Martin Fechner wrote: >> Hi all, >> >> I wish you happy new year and start with an xml-question: >> Is it possible to process files from an URL address? It should be >> something like: >> >> \starttext >> >> >> >> \xmlprocessfile{main}{http://example.com/document1.xml}{} >> \xmlprocessfile{main}{http://example.com/document2.xml}{} > > low level hackery ... > > \edef\MyFileName#1{\cldcontext{resolvers.findbinfile(url.hashed("#1"))}} > > \xmlprocessfile{main}{\MyFileName{"http://example.com/document1.xml"}}{} > > \xmlshow{main} This doesn't seem to work. The output says only: empty xml file But the xml-file isn't empty. Any solution? ___ 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 ___
Re: [NTG-context] xmlfiles and url address
On 5-1-2012 09:19, Martin Fechner wrote: Hi all, I wish you happy new year and start with an xml-question: Is it possible to process files from an URL address? It should be something like: \starttext \xmlprocessfile{main}{http://example.com/document1.xml}{} \xmlprocessfile{main}{http://example.com/document2.xml}{} low level hackery ... \edef\MyFileName#1{\cldcontext{resolvers.findbinfile(url.hashed("#1"))}} \xmlprocessfile{main}{\MyFileName{"http://example.com/document1.xml"}}{} \xmlshow{main} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
[NTG-context] xmlfiles and url address
Hi all, I wish you happy new year and start with an xml-question: Is it possible to process files from an URL address? It should be something like: \starttext ... \xmlprocessfile{main}{http://example.com/document1.xml}{} \xmlprocessfile{main}{http://example.com/document2.xml}{} ... \stoptext Thank you for your support. Kind regards, Martin ___ 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 ___