W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > April 2006

Save component and multiple inputs

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 12 Apr 2006 14:53:46 +0100
Message-ID: <443D066A.2090206@jenitennison.com>
To: public-xml-processing-model-wg@w3.org

Hi Norm,

The current draft says that "If the href parameter [of the Save 
component] is specified, all the documents are written to that URI and 
if more than one document arrives, the URI will contain only the last 
document when the component finishes."

I think that this could introduce side effects. Say that we're saving 
the result of an iteration:

   <p:for-each>
     <p:input select="$documents" label="doc" />
     <p:xslt>
       <p:input select="$doc" />
       <p:input name="stylesheet" href="style.xsl" />
       <p:output label="result" />
     </p:xslt>
     <p:output select="$result" label="results" />
   </p:for-each>
   <p:save select="$results" href="output.xml" />

The order in which the documents were processed within the for-each 
would determine which of the results was saved to output.xml.

I think that it should be an error if the href parameter is specified 
for the save component and more than one input document is provided.

Cheers,

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com
Received on Wednesday, 12 April 2006 13:53:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:47 GMT