[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: document() and HTTP headers

Subject: RE: document() and HTTP headers
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 12 Dec 2005 19:12:48 -0000
ashley brilliant
You can write a URIResolver that intercepts the call to the document()
function and performs whatever magic it likes. This is part of the standard
JAXP (javax.xml.transform) API.

Saxon by default uses the openConnection() method of the java.net.URL class.

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: Vidar Ramdal [mailto:vramdal@xxxxxxxxx] 
> Sent: 12 December 2005 18:20
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  document() and HTTP headers
> 
> I want to modify the behaviour of the document() XPath function.
> 
> Due to some recent trouble involving an eternal loop of document()
> calls, I'd like to set a  Referer header for the HTTP request that is
> made when fetching a remote document. By default, it seems, there's no
> Referer header set.
> 
> If I could set the Referer header to something meaningful, and then
> examining it upon receiving a request, I can determine if we're
> looping or not.
> 
> How can I accomplish that? Using Saxon 6.5.
> 
> --
> Vidar S. Ramdal <vramdal@xxxxxxxxx>
> "My sources are unreliable, but their information is fascinating"
> (Ashley Brilliant)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.