- From: Sheila Thomson <discuss@bluegumtree.com>
- Date: Sat, 25 Apr 2026 13:45:48 +0100
- To: xproc-dev@w3.org
- Message-ID: <9da002d2-2c2c-4dbf-af53-64d1970faa19@bluegumtree.com>
Thanks Martin, that works. I'm used to using XPath expressions within select attribute on p:with-option, to arrive at the value I wish to supply, but hadn't noticed that when the expected data type of that option is an XPathExpression or XSLTSelectionPattern, it needs to be a string (as explained in Standard Step Library § 1. Introduction). Probably because when the syntactic shortcut is used to supply the option value via an attribute, the quotes aren't required (as explained in An XML Pipeline Language § 16.4.3.1. Syntactic Shortcut for Option Values). Another lesson learned :) Kind regards, Sheila > On 25/04/2026 02:57, Sheila Thomson wrote: >> >> The following works as expected: >> >> <p:filter select="/*/greeting[3]" /> >> >> But if I use this variation, both xml-calabash and Morgana throw an >> error: >> >> <p:filter> >> <p:with-option name="select" select="/*/greeting[3]" /> >> </p:filter> > > > Based on the error messages I wonder whether you need > > <p:filter> > <p:with-option name="select" select="'/*/greeting[3]'" /> > </p:filter> >
Received on Saturday, 25 April 2026 12:46:58 UTC