Questions tagged [muenchian-grouping]

Muenchian Grouping is an XSLT technique for optimizing the grouping of data in an XSL Transform.

Muenchian Grouping, named after it's founder, Steve Muench, is an XSLT grouping technique which improves the efficiency of traditional XSLT grouping (which typically uses preceding-sibling or following-sibling to determine the uniqueness of the node and hence its eligibility to form a new group).

Instead, Muenchian Grouping uses xsl:key to classify groups, in much the same way as a database index works.

188 questions
10
votes
4 answers

Applying Muenchian grouping for a simple XML with XSLT

How does Muenchian grouping work in details? I have a simple XML document generated from a database: John 1424763562761 2012-10-03
user1728778
  • 151
  • 3
  • 9
5
votes
1 answer

XSLT split output files - muenchian grouping

I have an XSLT file so as to transform large amount of data. I would like to add a "split" functionality, either as a chained XSLT or within the current XSLT that can create multiple output files so as to limit the size of the files under a certain…
Daniel
  • 165
  • 3
  • 12
4
votes
2 answers

XSLT group by half hour

Given this XML: 800 815 830
Echiban
  • 849
  • 2
  • 11
  • 21
3
votes
3 answers

muenchian grouping

I was wondering how this predicate([1]), is hardcoded as 1 always in the muenchian grouping. The concept was not clear for me, after a lot of search. It is explained as the current node, is compared with the 1st group returned by the key. Why does…
Suresh
  • 1,081
  • 4
  • 21
  • 44
3
votes
1 answer
3
votes
3 answers

XSLT 1.0: grouping and removing duplicate

I have a xml grouping challenge for which I need to group AND remove duplicate as below: John June12 34 35
Daniel
  • 165
  • 3
  • 12
3
votes
1 answer

List unique values of an attribute within a group only for specific criteria in XSL 1.0

I need to list the unique values of an attribute in a group, when another attribute has a specific value. Making this work in XSL 1.0 is very tricky to understand. Thanks to another post, I now have the groupings defined to allow me to perform…
MarkT
  • 81
  • 7
3
votes
1 answer

XSLT Grouping and subgrouping

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

Using XSLT muenchian grouping to calculate sports team standings (wins/losses)?

I have been struggling for days to determine how to take an XML file of game results (teams and final scores) and generate a team standings list that shows each team along with how many times they won, lost or tied. The results should also be sorted…
Sam J.
  • 23
  • 2
2
votes
1 answer

xslt 1.0, select group of nodes with key

I want to select nodes based on some variables. The XML code: 1345 11245 88885
GWorking
  • 4,011
  • 10
  • 49
  • 90
2
votes
1 answer

XSLT muenchian grouping by value in child node

I'm trying to convert an sap iDoc to another xml file with a BizTalk map written in xslt. The problem is I need to group nodes based on a value that we can find in a specific subnode. Muenchian grouping (I use XSLT 1.0) seems to be the solution but…
Gosfly
  • 1,240
  • 1
  • 8
  • 14
2
votes
1 answer

I cannot get my head around XSLT 1.0 Muenchian grouping

I'm basically just trying to group the DCLDET segments by the container ID, so i can create an additional tag that would be I've read up on the Muenchian grouping but nothing I do…
Dorbs
  • 173
  • 3
  • 15
2
votes
1 answer

XSLT / Muenchian grouping: how to select element with certain sub-element from group?

I would like to be able to select one element from group of duplicates (done with Muenchian grouping) having certain sub-element. My XML looks like this: SSCC1
Vp Soini
  • 61
  • 4
2
votes
2 answers

group response as per month and year combination

I want into write xslt to get response for the input xml. thanks in advance. I want to group output such that month year combination is not repeated for each of the employee details. Input XML:
alisha
  • 21
  • 1
2
votes
1 answer

Can apply-template be used w/ Muenchian grouping instead of for-each?

As I understand it, using for-each loops when unnecessary is bad form. Can someone show me how I might convert the nested for-loops with grouping in this XSL into individual templates? This seems easy when the XML is hierarchical, but for flat XML,…
sk8pickel
  • 43
  • 4
1
2 3
12 13