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

Parameter issue: parameters-as-documents or specialised handling

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 06 Jun 2007 15:24:39 +0100
Message-ID: <4666C3A7.6050101@jenitennison.com>
To: public-xml-processing-model-wg@w3.org

Hi,

The proposals for handling parameters have two approaches:

   1. Those that expose and pass parameters as (sequences of) documents,
      which are then amenable to manipulation in the same way as other
      documents.

   2. Those that provide specialised mechanisms for handling parameters,
      such as <p:parameter-set>.

I think we should decide which of these general approaches to pursue 
before looking at the proposals in detail.

I'm strongly in favour of exposing parameters as sequences of documents, 
because:

  (a) the spec already tells us how to process document sequences
  (b) implementations can already process document sequences
  (c) users already know how to process document sequences
  (d) it's an extremely powerful and flexible approach because all the
      XProc components are at your disposal for manipulating parameters

The main disadvantage, I think, is that using documents to expose 
parameters tends to be more verbose that specialised syntax. But (a) in 
the vast majority of cases this can be mitigated by defaulting and (b) I 
don't think this disadvantage outweighs the advantages above.

Cheers,

Jeni
-- 
Jeni Tennison
http://www.jenitennison.com
Received on Wednesday, 6 June 2007 14:24:43 GMT

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