- From: Vasil Rangelov <boen.robot@gmail.com>
- Date: Thu, 11 Oct 2007 12:45:54 +0300
- To: <public-xml-processing-model-comments@w3.org>
How does XSLT do it then? I mean, a parameter (which practically does the same thing options do here) can take the value of another in-scope parameter, making <xsl:param name="p1" select="'value1'"/> <xsl:param name="p2" select="$p1"/> Valid in any case. How come XProc can't do the same? -----Original Message----- From: public-xml-processing-model-comments-request@w3.org [mailto:public-xml-processing-model-comments-request@w3.org] On Behalf Of Norman Walsh Sent: Wednesday, October 10, 2007 10:29 PM To: public-xml-processing-model-comments@w3.org Subject: Re: injecting options and parameters into XProc / Vasil Rangelov <boen.robot@gmail.com> was heard to say: |>A step can't see it's own options. | | Does that mean that | <p:pipeline xmlns:p="http://www.w3.org/ns/xproc"> | <p:xslt2> | <p:input port="stylesheet"> | <p:document href="stylesheet1.xsl"/> | </p:input> | <p:option name="allow-version-mismatch" value="no"/> | <p:option name="allow-collections" | select="$allow-version-mismatch"/> | </p:xslt2> | </p:pipeline> | | Is a (static?) error, since there is no allow-version-mismatch option | anywhere outside the p:xslt2 step, even though there is such within | the step itself (AND is explicitly specified)? Doesn't seem right... Yes, it's a static error. Seeming right may be a matter of opinion :-) Not allowing different options in the same scope to see each other means that we don't have to worry about the order in which options occur or circularity of reference. Be seeing you, norm -- Norman Walsh <ndw@nwalsh.com> | Simplicity is always a virtue.--Edward http://nwalsh.com/ | Abbey
Received on Thursday, 11 October 2007 09:46:09 UTC