Allow select and match mode in the XPath Builder
Posted: Fri Jul 18, 2025 12:13 pm
I often use XPath/XQuery builder for testing XSLT transformations, especially for constructing an XPath to match specific elements/attributes in the XML document.
XPath Builder only allows (as far as I know) to construct an XPath expression, but XSLT uses pattern matching. I usually add "//" to the beginning of the expression in the XPath Builder and remove it when copying to in the XSLT stylesheet.
I suggest adding a switch to XPath Builder with two options:
XPath Builder only allows (as far as I know) to construct an XPath expression, but XSLT uses pattern matching. I usually add "//" to the beginning of the expression in the XPath Builder and remove it when copying to
Code: Select all
xsl:templat/@match
I suggest adding a switch to XPath Builder with two options:
- select mode - constructed expression works like XPath
- match mode - constructed expression works like XSLT match pattern