Top "Xpath-2.0" questions

Use this tag for questions specific to XML Path Language (XPath) version 2.0

XPath to retrieve text within span

I am trying to figure out the XPath which will retrieve the 'text Data 3' from the following HTML snippet &…

html xpath xpath-2.0
XSL if test starts-with

Given this piece of XML <dc:date>info:eu-repo/date/embargoEnd/2013-06-12</dc:date> <…

xslt xpath xpath-2.0
How to check if element node contains a specific value in xsl

I have an XML document: <?xml version="1.0" encoding="ISO-8859-1"?> <document> <fruits> <fruit …

xml xslt xpath-2.0
xpath dates comparison

I'm trying to filter elements based on an attribute that is a date in the format yyyy-MM-dd. My XML looks …

xml xpath xpath-2.0
How do you identify duplicate values in a numerical sequence using XPath 2.0?

I have an XPath expression which provides me a sequence of values like the one below: 1 2 2 3 4 5 5 6 7 It is easy to …

xml xpath xpath-2.0
XPath: Match whole word (using matches function with case insensitive flag)

Using XPath, I would like to "Match whole word" (option for user, just like in VS search). It seems as …

regex search xpath xpath-2.0
Finding the difference between 2 dates in xslt

Is there a less then kludgey way of finding the difference in days between 2 dates in xslt? If so can …

xslt xslt-2.0 xpath-2.0
XQuery/XPath: Using count() and max() function for return of element with highest count

I have an XML file that contains authors and editors. <?xml version="1.0" encoding="UTF-8"?> <?oxygen RNGSchema="file:…

xpath xquery xpath-2.0
Nested conditional if else statements in xpath

I have this XML: <property id="1011"> <leasehold>No</leasehold> <freehold>Yes</…

xpath conditional if-statement xpath-2.0
XPath 2.0 online tester?

i work with Oxygen XMLTester for xPath selectors, supporting XPath 2.0 specification. So i wonder if there is any online tester …

testing xpath-2.0