Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When attempting to add an attribute with a value taken from a variable, if the variable's name is $match, then the value of the p:add-attribute's match attribute is used, instead of the variable.
$match
p:add-attribute
match
<p:declare-step version="1.0" name="test" xmlns:p="http://www.w3.org/ns/xproc"> <p:output port="result"/> <p:variable name="match" select=" 'test' "/> <p:identity> <p:input port="source"> <p:inline> <example/> </p:inline> </p:input> </p:identity> <p:add-attribute match="/*" attribute-name="example"> <p:with-option name="attribute-value" select="$match"/> </p:add-attribute> </p:declare-step>
Result:
<example example="/*"/>
Expected:
<example example="test"/>
(using xmlcalabash-1.1.4-95)
The text was updated successfully, but these errors were encountered:
Fix issue #215 by making sure option scopes don't get comingled
3600f8b
9e10c18
No branches or pull requests
When attempting to add an attribute with a value taken from a variable, if the variable's name is
$match
, then the value of thep:add-attribute
'smatch
attribute is used, instead of the variable.Result:
Expected:
(using xmlcalabash-1.1.4-95)
The text was updated successfully, but these errors were encountered: