Re: [xsl] document() function refuses http adresses

Subject: Re: [xsl] document() function refuses http adresses
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 8 Nov 2006 13:47:18 GMT
Syntactically your code looks OK. Whether or not a given system can
access external http URI depends an awful lot on local firewall and
security issues.

The URI you referenced is served as text/plain rather than with an XML
mime type, which could cause an xsl system to reject it as not being
xml, but most ignore the mime type and treat it as xml if it looks like
xml (which is also conformant behaviour). However UnknownHostException
sounds more like firewall not letting you see the outside at all than
with any mime type problems.

You probably don't want to use value-of on the whole document (as you
just get the character data, ignoring any element markup) but I assume
that's just for testing the document() function.

David

Current Thread