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

Re: xalan 1.1 document() fails on url?

Subject: Re: xalan 1.1 document() fails on url?
From: "Christopher R. Maden" <crism@xxxxxxxxxx>
Date: Mon, 10 Jul 2000 19:05:27 -0700
xalan document
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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