ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* xmlfiles and url address
@ 2012-01-05  8:19 Martin Fechner
  2012-01-05 12:36 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Fechner @ 2012-01-05  8:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xmlfiles and url address
  2012-01-05  8:19 xmlfiles and url address Martin Fechner
@ 2012-01-05 12:36 ` Hans Hagen
  2012-01-06 13:02   ` Martin Fechner
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2012-01-05 12:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xmlfiles and url address
  2012-01-05 12:36 ` Hans Hagen
@ 2012-01-06 13:02   ` Martin Fechner
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Fechner @ 2012-01-06 13:02 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

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:

<error>empty xml file</error>

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-06 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-05  8:19 xmlfiles and url address Martin Fechner
2012-01-05 12:36 ` Hans Hagen
2012-01-06 13:02   ` Martin Fechner

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).