[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Including an external xml source via http


Subject: Re: [xsl] Including an external xml source via http
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 18 Jul 2002 01:43:32 -0600 (MDT)

Dan Henke wrote:
> After searching through the archives I found plenty of posts about including
> external xml sources into an xsl tranformation but they were all referring
> to external files on the same filesystem as the stylesheet using the
> document() function.  What I am trying to do is to include an external xml
> file via http.
> 
> ie, document('http://www.example.com/something.xml')

<xsl:copy-of select="document('http://www.example.com/something.xml')"/> ought
to work, but it's possible that the Sablotron/PHP combo does not use a URI
resolver that allows external access. Perhaps it's a security / configuration
issue. I'd check the docs for those tools first.

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords