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


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

   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, 

  (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.


Jeni Tennison
Received on Wednesday, 6 June 2007 14:24:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:43 UTC