Associating an option with a step

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