This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: xalan 1.1 document() fails on url?


Bruce G. Robertson wrote:

> 
> This: 
> <xsl:apply-templates select="document('http://www.heml.org')"/>
> 

The problem probably is that the URI does not point to a document. It just 
gives a protocol (http) and a hostname (www.heml.org), but it does not at 
all specify which document on that hostname it supposed to point to.
Usually a web server on a host would deliver by default an index.htm(l) 
from the root of the published directory tree, but this is not necessarily 
an XML document (in this particular case it is definitely not).

Maybe you should try something like 
'http://www.heml.org/samples/document.xml' ...

HTH,
        Ragnar


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]