Questions tagged [xsl-grouping]

19 questions
3
votes
3 answers

XSLT: Grouping and sorting....how?

I have an XML file that looks like the following... North Carolina Charlotte Alaska Fairbanks Virginia
Doug
  • 31
  • 1
  • 2
3
votes
3 answers

Group-adjacent nodes using xslt

Questions concerning the group-adjacent function have already been asked, I know. For some reason though, I can't get this to work. I inherited project at work that uses xslt and my boss doesn't appreciate how steep the learning curve is for…
5150
  • 33
  • 1
  • 4
3
votes
1 answer

XSLT Grouping and subgrouping

I have the following code:
James Campbell
  • 5,057
  • 2
  • 35
  • 54
2
votes
2 answers

Using grouping to pull together text and then test it

So in this grotty extruded typesetting product, I sometimes see links and email addresses that have been split apart. Example:

Here is some random text with an email address example@example.com and here is more random…

D.Salo
  • 155
  • 9
2
votes
2 answers

Muenchian Grouping - group within a node, not within the entire document

I'm trying to use Muenchian grouping in my XSLT to group matching nodes, but I only want to group within a parent node, not across the entire source XML document. Given XSLT and XML as follows (apologies for the length of my sample code):…
kristian
  • 22,731
  • 8
  • 50
  • 78
1
vote
1 answer

XSLT Key Grouping for Child Nodes

1
A1 1000
A2 2000
Harish M
  • 33
  • 4
1
vote
1 answer

Grouping in XSLT 2.0 similar to br to p problems

In XSLT 1.0, a common question in forums was how to convert flat HTML into hierarchical XML, which many times boiled down to nesting text in between
tags in

tags. I have a similar problem, which I think I've partially solved using XSLT…

Mattio
  • 2,014
  • 3
  • 24
  • 37
1
vote
1 answer

Grouping several groups in XSLT 2

I'm trying to add hierarchy to some grotty extruded typesetting XML. I can't seem to manage grouping several kinds of groups in the same parent element at once. What I have (simplified, obviously):

A section title here

A…

D.Salo
  • 155
  • 9
1
vote
1 answer

xsl grouping of repetitive nodes by xml element in xslt1

I have a complex xml structure that looks like : type1 description11
Polina F.
  • 629
  • 13
  • 32
1
vote
1 answer

Grouping nested elements in xslt 1.0

I've been looking at examples of Muenchian grouping in XSLT 1.0, specifically this example here. However I'm unable to get it working on a more complex XML structure. My XML currently looks like this:
pat007
  • 13
  • 2
0
votes
2 answers

XSLT Grouping with addition/combination of sub elements

I have the following XML
Jon H
  • 1,061
  • 4
  • 13
  • 32
0
votes
2 answers

XSLT transformation: Grouping coverage codes by vehicle category and calculating premium split

Grouping in XSLT Need to create a XSLT for below Request XML. XSLT has to do below: Group the Coverage codes based on vehicle category. Sum up premium per coverage code Sum up premium per coverage code and vehicle category Get the Vehicle category…
0
votes
1 answer

xsl:for-each-group not working as per exception

I have to transform XML tag out of p as separate div but i am unable to do it: XML:

This is First paragraph

Amrendra Kumar
  • 1,806
  • 1
  • 7
  • 17
0
votes
2 answers

XSLT complex sorting and grouping

I have an XML file looked like this: q7 foo q1 foo q6
0
votes
2 answers

XSL-FO, Group items to tables

XML: 1 (M)echanism: Ejection
1
2