Questions tagged [nodesets]

A node-set is a set of nodes in a or document. Node sets are returned by e.g. a expression.

10 questions
11
votes
3 answers

Nodesets Length

In XLST how would you find out the length of a node-set?
Steve
9
votes
1 answer

XPath NodeSet in Java

I have this code in eclipse NodeSet nodes = (NodeSet) xPath.evaluate(expression,inputSource, XPathConstants.NODESET); and its giving me compile time error on NodeSet. These are the stuff that I have imported. Can you tell me why it's doing…
denniss
  • 17,229
  • 26
  • 92
  • 141
6
votes
6 answers

Find position of a node within a nodeset using xpath

After playing around with position() in vain I was googling around for a solution and arrived at this older stackoverflow question which almost describes my problem. The difference is that the nodeset I want the position within is dynamic, rather…
philsquared
  • 22,403
  • 12
  • 69
  • 98
1
vote
0 answers

Use DI Nodeset instead of Standard Nodeset http://opcfoundation.org/UA/

I working with Open62541-Lib. When i Creat Objects with UA_Server_addObjectNode() or UA_Server_addVariableNode() they always get Namespace 0 and belongs to http://opcfoundation.org/UA/. Can i define another Namespace in the Code, so every created…
hfiazi
  • 11
  • 1
1
vote
3 answers

Is this XPath technique reliable in all situations?

I am developing an application that accepts user-defined XPath expressions and employs them as part of its runtime operation. However, I would like to be able to infer some additional data by programmatically manipulating the expression, and I am…
Tim Coulter
  • 8,705
  • 11
  • 64
  • 95
1
vote
3 answers

XSLT 1.0: restrict entries in a nodeset

Being relatively new to XSLT I have what I hope is a simple question. I have some flat XML files, which can be pretty big (eg. 7MB) that I need to make 'more hierarchical'. For example, the flat XML might look like this:
Nic
  • 65
  • 1
  • 8
1
vote
1 answer

XSLT 2.0, getting ancestor::child element named enum recursively from a descendent

UPDATE: 9-18-2012, late afternoon The 101.(a) are extra here, and are ancestor::*[@belcode] above the one I need. They are in the XML sample below, and I haven't been able to figure out how NOT to get them. bad XML output sample:
ccpk38485
  • 11
  • 2
0
votes
1 answer

XSLT 2 - nodeset from global parameter

I spend a lot of time with googling but have not found the answer or solution. In XSLT 2, there is possibility to cast variable to a node-set. So something like this work.
Jirka Š.
  • 3,388
  • 2
  • 15
  • 17
0
votes
1 answer

XSL Transform extracting min and max dates

I'm trying to extract min and max dates from an XML source. I'm getting a nodeset into my variables and I need the actual date value within the nodes and can't find how to get it. Source XML:
Rick
  • 15
  • 1
  • 4
-2
votes
1 answer

xPath selective nodesets

I have a document that looks something like this: AAA BBB CCC DDD
user898465
  • 944
  • 1
  • 12
  • 23