Page 1 of 1

Allow select and match mode in the XPath Builder

Posted: Fri Jul 18, 2025 12:13 pm
by daliboris
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

Code: Select all

xsl:templat/@match
in the XSLT stylesheet.

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
I hope that this behavior of XPath Builder is possible and that it saves a lot of time when debugging stylesheets.

Re: Allow select and match mode in the XPath Builder

Posted: Fri Jul 18, 2025 5:06 pm
by teo
Yes, your suggestion makes sense.
I will log it in our feature request tracking system for discussion and possibly add it to the development plans for future releases.

Regards,
Teo

Re: Allow select and match mode in the XPath Builder

Posted: Fri Jul 25, 2025 10:35 pm
by daliboris
Thank you, Teo.

Best regards,
Boris