ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Martin Fechner <fechner@bbaw.de>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: xmlfiles and url address
Date: Fri, 06 Jan 2012 14:02:07 +0100	[thread overview]
Message-ID: <4F06F0CF.2000909@bbaw.de> (raw)
In-Reply-To: <4F059956.5030705@wxs.nl>

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
___________________________________________________________________________________


      reply	other threads:[~2012-01-06 13:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-05  8:19 Martin Fechner
2012-01-05 12:36 ` Hans Hagen
2012-01-06 13:02   ` Martin Fechner [this message]

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=4F06F0CF.2000909@bbaw.de \
    --to=fechner@bbaw.de \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).