expanding p:with-param applicability

past XSLT use cases, parameters (p:with-param and p:parameters) are a
pretty limited; I can see the benefit of piping through large sets of
parameters, but since these params control/configure transformations I
am sure lots of users will want them exposed at the XProc layer as
well... in any event its past the point of arguing this point.

I was wondering though if there is not an opportunity to expand
parameters by taking advantage of the fact that parameters are not
included in the functional signature of a declared step.

consider the following pseudo compound step example;

<p:group name="myteststep">
  <p:variable name="currentmonth"
              select="fn:month-from-date(xs:date("1999-05-31-05:00"))"/>
    <p:somestep>
        <p:with-param name="concat('key',$currentmonth)"
select="/root/document"/>
 </p:somestep>
</p:group>

where the name of the parameter itself is calculated as the
concatenation of the word 'key'+ some month number.

wondering if the WG had considered the scenario of dynamically
generated names ?  Or is this the case now (I must confess to a bit of
confusion here, as I have this behavior already encoded in my test
suite this way).

regards, Jim Fuller

Received on Tuesday, 6 May 2008 19:37:28 UTC