Allow select and match mode in the XPath Builder

Are you missing a feature? Request its implementation here.
daliboris
Posts: 33
Joined: Thu Feb 11, 2010 5:00 pm

Allow select and match mode in the XPath Builder

Post 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.
teo
Posts: 87
Joined: Wed Aug 30, 2017 3:56 pm

Re: Allow select and match mode in the XPath Builder

Post 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
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
daliboris
Posts: 33
Joined: Thu Feb 11, 2010 5:00 pm

Re: Allow select and match mode in the XPath Builder

Post by daliboris »

Thank you, Teo.

Best regards,
Boris
Post Reply