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

Re: Revisiting "fixing parameters"

From: Norman Walsh <ndw@nwalsh.com>
Date: Wed, 05 Dec 2012 09:08:49 -0800
To: public-xml-processing-model-wg@w3.org
Message-ID: <m2txs08lzy.fsf@nwalsh.com>
James Fuller <jim@webcomposite.com> writes:
> I remember dimly of us conversing to retain the p:with-param (versus
> lets say overloading p:with-option) but any chance of re-summarizing
> … its probably related to something to do with the step signature but
> as we have parameter="true" on p:option was wondering if there is a
> further opportunity to simplify things.

I think we decided to retain with-param so that this would still be OK:

  <p:xslt>
    ...
    <p:with-param name="page-size" select="'A4'"/>
    <p:with-param name="output-format" select="'pdf'"/>
  </p:xslt>

We could do away with with-param, but then you'd have to write

  <p:xslt>
    ...
    <p:with-option name="parameters" select="map{'page-size':='A4',
                                                 'output-format':='pdf'}"/>
  </p:xslt>

which seems rather burdensome. There are some subtleties related to
mixing the two forms, and I don't recall exactly how we resolved
those, or if we got down to that level of detail.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com

Received on Wednesday, 5 December 2012 17:09:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 5 December 2012 17:09:24 GMT