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

Re: Document function URI

Subject: Re: Document function URI
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Tue, 14 Dec 2004 20:21:32 +0100
xsl document function
Hi,

(read below)

Antsnio Mota wrote:

Hi again.

This is from the W3C site:

"When the first argument to the document function is not a node-set, the first
argument is converted to a string as if by a call to the string function. This
string is treated as a URI reference; the resource identified by the URI is
retrieved. The data resulting from the retrieval action is parsed as an XML
document and a tree is constructed in accordance with the data model."

So, i can have something like

document('http://mysite/getxml.asp?param="xxx"')

if the asp return some well-formed XML, correct?

Yes, correct. You could test it first by referencing a static (well-formed) XML file on a web-server of ftp-server.


By the way, you might want to be carefull with the use of double quotes in your document argument. I don't believe they are necessary here, but if you do need them there, escape them in XML with &quot; or pass an encoded url with " substituted with %22

I'm convinced that it is, but since i don't have access in this phase to a asp
or servlet server, i prefer to ask before i proceed to the server side.

Thanks again.

Cheers...


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.