Questions tagged [node-set]

76 questions
1
vote
1 answer

Creating a custom XPath function to modify a node-set in Java

I am creating a custom XPath function in Java that modifies the text-nodes in a node-set. I need to pass in a node-set, have the code loop through every node and return a node-set. I have seen many examples of custom XPath functions that modify…
kel_ff0080
  • 759
  • 2
  • 6
  • 11
1
vote
1 answer

Issue with using exslt str:replace with a nodeset

I've got an issue that I think is a namespace when using the exslt string replace function. I'd like to replace several strings in a target string by using the nodeset form of the exslt string replace function as per the documentation here. However…
ragamufin
  • 4,113
  • 30
  • 32
1
vote
2 answers

XSLT - Printing the first node from a set of identical nodes

I am facing a problem trying to print one line only for a set of identical nodes and I could not find a similar post for identical nodes. I have an input xml file containing a set of identical nodes, for instance it looks like:
jeevium
  • 733
  • 6
  • 10
1
vote
1 answer

XSLT function exslt:object-type in IE and Chrome

EXSLT provides a set of useful extensions to XSLT. Probably most of us have used exslt:node-set function. One of the other function specified by EXSLT is 'exslt:object-type'. Unfortunately, most browsers (except Firefox) seem not to support this…
1
vote
1 answer

Union of two node-set results leads to duplicated set member

I'm using xslt 1.0, and I need a union of two variables which means I have to use node-set function. The test case below creates a union of a single node with a set that contains this node. Since A contains B, the union operation should return B.…
mahonya
  • 9,247
  • 7
  • 39
  • 68
1
vote
1 answer

what's wrong with this XSL code?

when I apply the transform I get an exception: expression must evaluate to a node-set.
John Smith
  • 4,416
  • 7
  • 41
  • 56
1
vote
1 answer

XQuery node is sequence

Is is-node-in-sequence-deep-equal in XQuery? I'm wondering because I've seen the function at xqueryfunctions.com, but I'm not being able to use it.
Noor
  • 19,638
  • 38
  • 136
  • 254
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
1
vote
3 answers

Unable to cast from XRTreeFrag into XNodeSet

I have the following test code... I am trying to pass a node-set as a param. After many hours, i finally was able to pass it to my template. How I pass my node-set to the template:
codenamezero
  • 2,724
  • 29
  • 64
0
votes
1 answer

xslt 1.0 get data from dynamic node-set in variable

A variable is being used to store related record information The variable has been updated to dynamically select, depending on results of a match, eg
0
votes
1 answer

How to fix the growing nodset with xpath, memory allocation failed

I am using xmllint to fetch some data from xml file, by using following command: xmllint --xpath '//Module[TestCase/Test[@result="fail"]]/@name' test.xml The same command worked for some time, but triggering it few time, I am getting an error…
0
votes
0 answers

xml_nodeset to tibble, one row per xml_nodeset (item)

I have a complicated xml file with items as 1st child nodes. The items can have different structure and some of the attributes are missing in some of them. I need to store one item (nodeset) in tibble row, so that I keep track on missing attributes…
ReCodeRa
  • 3
  • 3
0
votes
1 answer

Unable to use apply-templates with node-set - XSLT

I am trying to get distinct values of shelf and add them to xml tree using node-set. I am trying to print the values of node-set using apply-templates. But I am doing something wrong. Kindly correct me. Thanks
mentor45
  • 17
  • 5
0
votes
0 answers

XSL: iterate over static values fails to behave as expected

(Edited and successfully resolved in response to a comment; TL;DR: forgot 'xsl' namespace of the for-each tag--truly embarrassing. SOmetimes you're only purpose in life is to serve as a warning for others, so I'm patching up my question with the…
Luke
  • 1
  • 1
0
votes
1 answer

How do I Multipass processing in a Docbook

I am new to docbook, but can not find a decent way to do multiples transformation in a single step; some post-processing on the result is needed. I would like to add a section with title and some text in the docbook xml structure in the first step…
noussa
  • 13
  • 3