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?


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

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