W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2008

Associating an option with a step

From: Dave Pawson <dave.pawson@gmail.com>
Date: Tue, 16 Dec 2008 18:43:12 +0000
Message-ID: <711a73df0812161043x6f26586du14dfc40de6c4e836@mail.gmail.com>
To: "XProc Dev" <xproc-dev@w3.org>

The CR has

<p:xslt name="generate" version="2.0">
  <p:input port="source">
  <p:input port="stylesheet">
      <xsl:stylesheet version="2.0">
  <p:with-option name="template-name" select="'someName'"/>

If there were 5 <p:input/> statements,
how to know which one the option is associated with?

5.7.3 says
It is a static error (err:XS0031) to use an option name in
p:with-option if the step type being invoked has not declared an
option with that name.

Is that the way the CR tells me of this 'link' between option values
and steps? A positive assertion may be clearer? However.

What if there are two xslt steps in scope? And two corresponding p:with-options?
(I see 'It is a static error (err:XS0004) to include more than one
p:with-option with the same option name as part of the same step
I.e. I'm avoiding this error by saying I want to execute two
transforms, one starting with template A and one with template B.
Is that  not currently possible?


Dave Pawson
Docbook FAQ.
Received on Tuesday, 16 December 2008 18:43:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:04 UTC