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
2
votes
1 answer

XSLT grouping on multiple keys using Muenchian method

This is the input file. All these blocks are wrapped in a tag which is not appearing, dunno why? And all these blocks are wrapped in a top level element . 1 11/10
20090401
Manks
  • 35
  • 1
  • 6
1
vote
2 answers

What is wrong with this merge and dedupe approach?

Given this source document:
Zach Young
  • 10,137
  • 4
  • 32
  • 53
1
vote
1 answer

Transform XML to Text file

I would like to convert the following XML to a text file, so that the type and date of the cars appear only once in the header, but the times are listed below. And the header is created with a daily breakdown. I tried grouping first and without…
gyuszmok
  • 21
  • 4
1
vote
0 answers

How to group by the nested elements on XSLT 1.0

I have a source XML as follows. 20230315 20230318 001 20230316
Handy
  • 33
  • 3
1
vote
1 answer

XSLT - How to use group by in this situation?

(A follow up of this thread) I now actually need to know the amount of visiters grouped by Day and then by period. I tried to apply the group-by suggested by Kirill Polishchuk, but I can only get it to group by one certain element. Now I actually…
doc92
  • 89
  • 1
  • 6
1
vote
1 answer

XSLT 1.0 Problems with group and subgrouping data - Muenchian method - nested grouping

I have a xml data export and want to transform the data for further reprocessing, xslt 1.0 is demanded. I know the form is a little bit unusual but this is the required form. I'm quite new to xsl so I would be really thankful for your help. This is…
1
vote
2 answers

Advanced muenchian grouping: group by items in child collection

I'm familiar with simple muenchian grouping in XSL, but I've encountered a problem, which I honestly don't even know, how to approach it. So I've got an XML:
Nikolaus
  • 57
  • 6
1
vote
1 answer

Need Help in Munechian grouping to calculate the for-each variable outputs

Please help in summation logic where I am getting an error while adding the variable value. XML below
1
vote
1 answer

XSLT Problem Using Muenchian Method of Grouping

I'm having a very odd problem with grouping a set of nodes in a document and getting a unique list based on a set of contained values. Given the following XML: John Q
pconrey
  • 5,805
  • 7
  • 29
  • 38
1
vote
2 answers

grouping based on non-identical line items xsl1.0

I have requirement as below to implement transformation using only XSL1.0, First condition is Group line items based on parentLineNumber. Then the second condition is to ignore the invoice line when ParentLinenumber and LineNumber is same when only…
1
vote
1 answer

Muenchian grouping stylesheet returning duplicate ungrouped nodes

I am trying to use Apache Xalan to group a list of product variants by their productId's. Here is an input sample: ***input_1.xml*** 1
kaan_a
  • 3,503
  • 1
  • 28
  • 52
1
vote
1 answer

XSLT 1.0: Group by attribute and join attribute values

I have the following simplified XML data and I want to group it by the Category ID and see if there's any similar records in the payload, if so I want to join the condition with the found element. 11
Rooster
  • 157
  • 2
  • 9
1
vote
0 answers

XSLT sibling recursion by column span that can detect if the succeeding column region is occupied

I have a partially working XSLT that groups my elements by columns according to column break. My elements are displayed in one column until a is encountered, which then makes the succeeding items rendered in a new column to the…
mark uy
  • 521
  • 1
  • 6
  • 17
1
vote
1 answer

Multiple groupings of XML nodes

I'm trying to group the input below by the destination and assortment values using muenchian-grouping which is new for me so I'm not sure how to do it properly. The input files will be much larger than this so performance is important.
1
vote
1 answer

Mimic pivot table using XSLT 1.0

I would like a pivot table that will show the following XML.
ivan quintero
  • 1,240
  • 3
  • 13
  • 22
1 2
3
12 13