You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just implemented support for multiple fill format tokens, however fills declared on a multi branch are restricted to yielding a single substitution. The reason being that nested node-sets are not supported in XPath/lxml. For instance, the following raises an XPathResultError:
A way around this could be to use Element nesting instead of node-sets for the pt:sequence extension function (i.e. return a detached tree), and change the internal implementation of how fills are handled accordingly (e.g. if we're on a multi branch, select the corresponding child of the evaluated root element, then use its children as token substitutions).
The text was updated successfully, but these errors were encountered:
Treat members of node sets as format token substitutions for fill
expressions declared outside of multi branch contexts (where they
would otherwise be greedily mapped to branches instead).
Fill expressions within multi branches are currently unable to declare
more than one substitution (see #10).
Treat members of node sets as format token substitutions for fill
expressions declared outside of multi branch contexts (where they
would otherwise be greedily mapped to branches instead).
Fill expressions within multi branches are currently unable to declare
more than one substitution (see #10).
I've just implemented support for multiple fill format tokens, however fills declared on a multi branch are restricted to yielding a single substitution. The reason being that nested node-sets are not supported in XPath/lxml. For instance, the following raises an
XPathResultError
:A way around this could be to use
Element
nesting instead of node-sets for thept:sequence
extension function (i.e. return a detached tree), and change the internal implementation of how fills are handled accordingly (e.g. if we're on a multi branch, select the corresponding child of the evaluated root element, then use its children as token substitutions).The text was updated successfully, but these errors were encountered: