[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] XSLT3.0: Question about shadow attributes and the possibility to supply value to a static parameter


Subject: Re: [xsl] XSLT3.0: Question about shadow attributes and the possibility to supply value to a static parameter
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Nov 2014 15:29:35 -0000

> On Fri, Nov 21, 2014 at 7:12 AM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>> The point about static parameters is that the caller is required to supply
them at compile time.
>
> OK, then this means that the caller should be compiled at the same
> time as the package. This wasn't clear in the specification.
>
> This means that the caller cannot be a command-line invocation of the
> transformation, correct?
>


In Saxon as it exists today, invocation from the command line is a single-shot
compile-and-go mechanism, so everything supplied on the command line is
available at compile time.

Of course one can envisage a processor in which compiled packages can be saved
to disk, and in which there is a command-line invocation that executes a
previously-compiled package. In that scenario, the static parameters would be
supplied at compile time, not at invocation time.

Michael Kay
Saxonica


Current Thread