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

Re: Document() function: GET vs. POST

Subject: Re: Document() function: GET vs. POST
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 12 Nov 2005 13:31:54 +0000
href post vs get
>>>>> "Colin" == Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> writes:

    Colin> If it were, then you would want an extension instruction

Thinking about it further, you will most likely need to specify a
document for use as POST data.

Something modelled on xsl:result-document therefore seems appropriate.
(Using xsl:result-document itself with an extension attribute wouldn't
be appropriate, because of the following restriction:

"[ERR XTRE1500] It is a recoverable dynamic error for a stylesheet to
write to an external resource and read from the same resource during a
single transformation, whether or not the same URI is used to access
the resource in both cases. The optional recovery action is
implementation-dependent: implementations are not required to detect
the error condition. Note that if the error is not detected, it is
undefined whether the document that is read from the resource reflects
its state before or after the result tree is written." 

Now the semantics of xsl:result-document are that of writing to a
final result tree. So to make use of the same URI in the document()
function would then not be legal. And it is desriable for
understanding of the stylesheet that the same URI be used.

So a reasonable solution seems to be to define an extension
instruction (where xxx is mentioned in an
[xsl:]extension-element-prefixes):

<xxx:post-data
href={uri-reference}
and serialization parameters etc.

whose semantic is defined to generate POST data for use in an http
POST request (or for any other URI schemes where this semantic makes
sense).

This also eliminates modality problems for the URI resolver - if the
effective value of the href attribute appears as the value of the
argument to doc(), or an argument to document(), and if the concept of
posting data is meaningful for the URI scheme concerned (e.g. http), 
then the serlialization of the result tree generated by xxx:post-data
will be used as post data in the request that obtains the resource.

-- 
Colin Adams
Preston Lancashire

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.