|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: document() and HTTP headers
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)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








