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

Re: [xsl] doc('http://blah')


Subject: Re: [xsl] doc('http://blah')
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 06 Sep 2012 11:44:46 -0400

At 2012-09-06 14:30 +0100, Ihe Onwuka wrote:
Sorry I haven't got my reference materials to hand.

Can I access the output of an http requestl via the XSLT 2.0 document
function and in document('http://blah") where http://blah is an XML
yielding http request.

Yes, and this has been available since 1999 with XSLT 1.0. I have linked from my web site to a conference paper titled "Simple Worldwide Aggregation Using XSLT":


http://www.CraneSoftwrights.com/#reading

It describes how companies licensing our training material maintain a private XML web page on their web sites with information regarding their deliveries of our courses. Every Monday I run an XSLT 1.0 stylesheet that goes around the world aggregating the information from those pages into our schedule page. They don't have to tell me they've changed any information, they just update the private page.

And the 1.0 stylesheets implement a fall-back when the connection to the web page fails (though this scheme involves using an extension to write the last successfully-retrieved page to a local file).

Companies that have distributed sources of information could do the same thing: each group maintains their own XML fragment with their own information at a reserved web address and the aggregation pulls it all together when needed.

I hope this is helpful.

. . . . . . . . . . Ken


-- Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal


Current Thread
Keywords