Questions tagged [node-set]
76 questions
8
votes
3 answers
querySelectorAll: manipulating nodes
As far as I have understood, querySelector returns a real changeable element while querySelectorAll returns a non-live Static Node Set.
I want to adjust the style of all elements fitting to a specific selector. It works fine for the first element…

fabb
- 11,660
- 13
- 67
- 111
5
votes
5 answers
result tree fragment to node-set: generic approach for all xsl engines
Answering another thread (see stackoverflow: generate css color schemes) I bumped into the issue below, where different xsl engines seem to need different approaches in transforming result tree fragments into node-sets.
Simplifying the issue (but…

Maestro13
- 3,656
- 8
- 42
- 72
5
votes
3 answers
XSL msxsl:node-set problem
Please help me out guys. I'm just trying to declare a simple result tree fragment and iterate over it.
...
- one
- two
- three
-

Maleks
- 347
- 3
- 9
4
votes
1 answer
XSLT create node name from variable
When I have these two variables
I would like create a node with the name of variable 'a' and its content from variable 'b'.
I have to use xsltproc with XSLT 1.0…

Andreas
- 83
- 1
- 1
- 6
3
votes
2 answers
Calling the same xsl:template for different node names of the same complex type
I'm trying to keep my xsl DRY and as a result I wanted to call the same template for 2 sections of an XML document which happen to be the same complex type (ContactDetails and AltContactDetails). Given the following XML:

CraftyFella
- 7,520
- 7
- 47
- 61
3
votes
1 answer
detect availability of node-set() function in xslt implementation of icecast server
Icecast contains an XSLT implementation based on libxslt from xmlsoft.
I want to know if it supports the node-set() function, preferably in a way that works for other web-only environments too:
Regrettably, the XSLT processor in icecast is only web…

Jeroen Wiert Pluimers
- 23,965
- 9
- 74
- 154
3
votes
1 answer
How do we determine if an XPath expression results in a node-set?
Given that any type other than a node-set cannot be coerced into a node-set, how do we determine,at runtime, if the result of an XPath expression is a node-set?
Although I guess it shouldn't matter, I'm using Sablotron for processing.
Thanks in…

macsimus_slackus
- 59
- 2
- 4
3
votes
1 answer
Changing, with xsl, element hierarchy by grouping element by attribute values, without assumption on attribute values?
Question
With xsl, how to change element hierarchy by grouping element by attribute values, without assumption on attribute values?
Description of the problem
The context of the document is the following: the xml tracks the change notes…

Derek
- 3,295
- 3
- 24
- 31
3
votes
3 answers
What does exsl:node-set treat as the root node?
I am having trouble understanding how the exsl:node-set function works.
I have some XML which I am expanding and using to dynamically populate an exsl:node-set. Let's say it currently is in this format:
…

Alex B
- 1,009
- 3
- 18
- 26
2
votes
1 answer
Distinct values across XSLT nodesets
Once again about the distinct nodes (basing on attribute values) in node set.
Imagine u have the following structure:
a_1
a_2
a_3
b_2
…

Savva Mikhalevski
- 227
- 4
- 14
2
votes
1 answer
How to delete a Node from a Nokogiri Nodeset?
I have a nodeset in the variable my_nodeset
I'd like to remove the last node that was found.
Initially i expected this to work: my_nodeset.last.remove but it does not.
The only way I've found to remove the last item is with something like…

Mario Zigliotto
- 8,315
- 7
- 52
- 71
2
votes
1 answer
Node indexing from coordinates
I'm working in a FEA (Finite Element Analysis) procedure inside Rhino/Grasshopper using C#. I have lines(FDs) and mesh triangular faces (NFDs) as inputs, each one with their nodes coordinates. I'm trying to get these coordinates and resume them up…

Marcio Sartorelli
- 43
- 2
2
votes
1 answer
How to return a node-set with a template
I'm trying to convert a datetime string to a node based datetime in XSLT 1.0.
basically I want to go from
31-12-2014
to:
31 12
2014
To achieve this I created this…

Jasper Saaltink
- 148
- 12
2
votes
2 answers
2
votes
1 answer
To use a result tree fragment in a path expression, first convert it to a node-set using the msxsl:node-set() function
I have following XSLT code:

amir moradifard
- 353
- 1
- 8
- 26