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

RE: document() function refuses http adresses

Subject: RE: document() function refuses http adresses
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 8 Nov 2006 14:23:27 -0000
RE:  document() function refuses http adresses
As others have said, this is very configuration-dependent. Saxon relies
entirely on the URI connection handling code in the Java runtime, and as
George pointed out there are various system properties you can set to tell
this code how to get through proxy servers and the like.

As far as the specification is concerned, there is actually nothing in the
spec that says whether a processor should be able to handle any particular
form of URI. The statement in my book was more at the level "with most
implementations it's likely, once you've configured things correctly, that
you will be able to...". Clearly if the implementation is running behind a
strong enough firewall then this isn't going to work.

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

> -----Original Message-----
> From: Robert Melskens [mailto:tridero@xxxxxxxxxxx] 
> Sent: 08 November 2006 13:36
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  document() function refuses http adresses
> 
> XSLT processor: Saxon8b
> XSLT version: 1.0
> 
> Hello,
> 
> According to the WROX XSLT Programmers Reference of Michael Kay (2000
> version) you should be able to use http addresses as a 
> parameter of the
> document() function (see page 442, where mr. Kay uses the 
> example "http://www.wrox.com/booklist").
> 
> However in one of my stylesheet I try to use the following command:
> 
> <xsl:value-of
> select="document('http://xml.ascc.net/schematron/schematron1-5
> .sch')"/>
> 
> unfortunately it results in a UnknownHostException. It looks 
> as if it doesn't know 'xml.ascc.net.
> I am able to use the http address in IE. I also tried it with 
> other http addresses but the result stays the same.
> 
> I also tried this in XML-Spy (native XSLT processor) but also 
> this wasn't succesful.
> 
> What am I doing wrong?
> 
> _________________________________________________________________
> Gratis 500 foto's per maand uploaden en delen met vrienden? 
> http://spaces.live.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.