xpath-2.0

Best XPath 2.0 Expression Evaluator (Eclipse)

What are the best XPath 2.0 Expression Evaluator for Eclipse? Any other standalone that is worth saying? ...

XPath search based on dynamic regular expressions

Hi I have an XML like the one below: <?xml version="1.0" encoding="UTF-8"?> <Configuration> <Destinations> <Destination name="DEST1" > <From>AMA*</From> </Destination> <Destination name="DEST2" > <From>AMAZON</From> </Destination> ...

MS VBA and XPath 2.0

Do any VBA libraries exist which will allow me to use XPath 2.0 within VBA? MSXML6 does not work with XPath 2.0. Basically, I want to parse XML documents using XPath 2.0 as it allows me to use functions within the XPath expression to filter the XML document. As an example, the usage of the function current-date() would be useful as I w...

Known xpath 2.0 processor with jdom support

Which xpath 2.0 processors with jdom support are known? ...

XPath 2.0 Libraries for .Net

Which XPath 2.0 libraries (apart from saxon) are available, preferably for .Net? ...

Will XPath 2.0 and/or XSLT 2.0 be implemented in PHP?

The question was asked but deleted by the asker before it received an answer. Because I believe the question is sound and legitimate and serves a purpose, I'm asking it again and provide the answer I already wrote for the original q. Will XPath 2.0 and/or XSLT 2.0 be implemented in PHP some day or are there any plans? ...

How do i select the preceding nodes of a text node starting from a specific node and not the root node?

How do i select the preceding nodes of a text node starting from a specific node whose id i know instead of getting the text nodes from the root node? When i invoke the below piece from a template match of text node, I get all the preceding text nodes from the root. I want to modify the above piece of code to select only the text node...

Applying templates to elements in a variable/sequence

When I use "apply-templates" and select a variable sequence, does the template act upon the context of the element in the sequence, or does it act upon the context of the element in the document? In the below example, it seems to do either, or none, but I don't understand why. <root> <a/> <b/> <c><a/></c> <a/> </root> <?xml version="...

Convert dateTime to unix epoch in xslt

Hi. I have a dateTime variable, and I want to convert it to a decimal value of epoch. How can this be done? I tried using: seconds-from-duration($time, xs:dateTime('1970-01-01T00:00:00')) but it just returns 0. Please advice. Thanks. ...

Shortest XPath to find minimum/maximum of sibling dateTime nodes

Hi I have the following simple xml: <root> <item> <d>2002-05-30T09:00:00</d> </item> <item> <d>2005-05-30T09:00:00</d> </item> <item> <d>2003-05-30T09:00:00</d> </item> </root> Now I want to find the minimum or maximum dateTime node using XPath. My solution at the moment is: /root/item[not(number(translate(./d, 'TZ:-', ...

Xquery finding duplciate IDs

I have an XML database which contains elements which have an id. These are all unique. They also have a secondary identifier which links them to a similar object in another database. These are not all unique. Is there an XQuery which would let me identify all the non-unique IDs? I can count how many there are using distinct-values(), bu...

Saxon XSLT 2.0 and RFC 822 date format

Hi, What is the right way to format xs:dateTime to RFC 822? ...

XSLT Number test

I am having a problem where the value of the $current variable came in as '6E144270003'. My original goal was to just test for a number, but '6E144270003' passed the number() test because it is a valid 'scientific notation' (as was pointed out to me here). I need a valid test to allow data containing only integers (can include the deci...

string length to find length of the repeating node

My xml looks like <details> <addr> <streetAddressLine>90822 abc lane</streetAddressLine> <streetAddressLine>apt b</streetAddressLine> <!-- streetAddressLine element is repeatable --> <state>xyz</state> </addr> </details> I am looking for xpath expression which can give me the length of string-length(streetA...

Alphanumeric sort on mixed string values: alpha numeric alpha

Given XML where FORMNUMBER can be numeric only; begin with numeric and then include alpha; or follow a numeric alpha numeric pattern: <FORMSLIST> <FORMS> <FORMNUMBER>3 ABC</FORMNUMBER> <FORMSEQ>99900</FORMSEQ> </FORMS> <FORMS> <FORMNUMBER>12 ABC 45</FORMNUMBER> <FORMSEQ>99900</FORMSEQ> </F...