Questions tagged [xpath-1.0]

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

W3C Recommendation:


Online Training

A 70-minutes "Crash Course in XPath" module is available as part of the Pluralsight video-course "XSLT 2.0 and 1.0 Foundations", by Dimitre Novatchev


410 questions
0
votes
1 answer

Extract element content as list and exclude sub element with XPath 1.0

I am currently trying to extract the li strings als element list, but I want to exclude the form element What I achieved so far is not returning two items because of the a elements in…
mrvnklm
  • 1,348
  • 2
  • 10
  • 19
0
votes
1 answer

XSLT 1.0 Group by / distinct xml nodes value

I have an XML file that contains a list of nodes MOVIMENTO and I need to group these nodes by value of sub-tag SIGLA with XSLT 1.0. 10
lory105
  • 6,112
  • 4
  • 31
  • 40
0
votes
1 answer

Xpath 1.0: ancestor-or-self::NameTest/NameTest[predicate] does not work as I expect

I am dealing with an XML vocabulary that has "default values": i.e., if a node does not have a certain subnode, I'd like to find the nearest enclosing node that has that subnode, and use its string value as the value of the original node's…
user1254127
  • 118
  • 6
0
votes
1 answer

all occurrences for xpath

having trouble getting the text for all occurrences matching a certain class regardless where it occurs.. name = chrome_session.find_element_by_xpath('//*[@class="u-title-font u-c-pointer u-bold"]').text current output : Dr. Shyam Sundar Reddy…
Pbch
  • 179
  • 2
  • 4
  • 12
0
votes
1 answer

How to extract nodes with no immediate text after them with XPath 1.0?

How to select certain nodes which have at least one following-sibling node, but have no immediate text node after them using single XPath 1.0 expression? For instance, from the following XML:

This is some formatted text, this is…

Cuder
  • 163
  • 2
  • 8
0
votes
2 answers

Xpath to use alternate element value if preferred value is nilled

I have a complication of the "usual" question of how to return a string value based on XPATH condition. I've successfully used the following solutions before: Return a string value based on XPATH condition and Nested conditional if else statements…
0
votes
0 answers

xpath 1.0 list nodes refferring to current node (links counting)

What i try to do : I would like to find the proper xpath to count (or list) links referring to the active node. my context is javascript with following detached dom tree used to query xpath with document.evaluate giving a specific entry point. As an…
1000i100
  • 400
  • 1
  • 3
  • 13
0
votes
1 answer

Does the CDATA slows the xslt transformation in XSLT 1.0

I use XPATH 1.0 and XSLT 1.0. I am wondering if the following code has a difference in case of performance…
Xelian
  • 16,680
  • 25
  • 99
  • 152
0
votes
0 answers

Is there any support in JDK6 and Spring 4.1.8 for XSL processing with Xpath version 2.0?

I am trying to achieve XML - XSLT transformation. For that I am using JDK 6 and Spring 4.1.8. From the code I see XsltPayloadTransformer compiles XSL file and then transforms XML data file. But however my XSL uses XPath V2 and It seems that JDK6…
Zebronix_777
  • 345
  • 4
  • 25
0
votes
1 answer

my data is not updating on online server .the data is updating on local

window.location='index.php'"; } /*##########################################*/ $id=$_GET['id']; if(isset($_POST['save'])) …
mansarao
  • 1
  • 1
0
votes
1 answer

Average numbers from impure nodes using pure xpath 1.0

Is it possible to sum the temperatures following XML: 40 F 45 F 50 F In xpath 2.0, I could get the average…
Doug Bradshaw
  • 1,452
  • 1
  • 16
  • 20
0
votes
2 answers

In XSLT 1.0 how to create a lookup function on XML data embedded in the XSLT using key and document('')?

My specific need is to lookup line-heights given a particular font-size, but I am seeking to learn a general technique of creating lookups/a specific mapping. I think it is possible to embed XML in the XSLT document itself (so it can work…
MrWatson
  • 476
  • 6
  • 11
0
votes
1 answer

XSLT 1.0 Group by reservationDate

I have the following XML data: