This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xalan 1.1 document() fails on url?
- To: xsl-list at mulberrytech dot com
- Subject: Re: xalan 1.1 document() fails on url?
- From: "Christopher R. Maden" <crism at lexica dot net>
- Date: Mon, 10 Jul 2000 19:05:27 -0700
- Reply-To: xsl-list at mulberrytech dot com
At 21:55 10-07-2000 -0400, Bruce Robertson wrote:
>This:
><xsl:apply-templates select="document('http://www.heml.org')"/>
>
>or anything like it generates:
>Transforming...
>http://www.heml.org; Line 5; Column 48
>XSL Warning: Can not load requested doc: http://www.heml.org
>
>whereas a file runs through tickety-boo.
Is the file at that URL in fact a well-formed XML document? If not, I'd
expect the XSLT processor to choke and die on it.
Besides the well-formedness of the resource you think you're getting, there
are also issues with URL precision. For example, the O'Reilly URL in my
signature actually returns a 301 Moved Permanently message with no
body. If that resource were in XML and I wanted to refer to it from some
tools (such as a Web validation service), I'd need to use
<URL:http://www.oreilly.com/people/staff/crism/> instead. I don't know if
Xalan will follow a 3xx response to the referenced resource.
-Chris
--
Christopher R. Maden, Senior XML Analyst, Lexica LLC
222 Kearny St., Ste. 202, San Francisco, CA 94108-4510
+1.415.901.3631 tel./+1.401.477.3619 fax
<URL:http://www.lexica.net/> <URL:http://www.oreilly.com/%7Ecrism/>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list