Parameter issue: parameters-as-documents or specialised handling

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 UTC