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

XSL: Only copy nodes which have a duplicate attribute value in a large XML file

Here is the type of input I have: content1
Azaghal
  • 430
  • 4
  • 12
0
votes
1 answer

How do I group by financial year in xslt?

I have an XML of programmes and their premiere dates. As part of my XSLT for a report, I want to divide the results by financial year (July 1 - June 30). The final output will be to different tabs in an excel spreadsheet (but that's the easy bit).…
Hockney
  • 13
  • 5
0
votes
2 answers

muenchian grouping nodes at different level

I have an xml file similar to the one below and I want to group the correct teams and players together using XSLT 1.0. But instead of displaying the correct players under their relevant teams, it displays all players under all teams. I know it has…
nod64
  • 61
  • 1
  • 9
0
votes
1 answer

Nested Grouping with Muenchian method

I have a static data-set in XML that has various data which is all relational. I am attempting to re-sort the data in reverse into a UL list while skipping the entries that do not lead up to. Dataset:
0
votes
1 answer

Slightly more complex xslt muenchian grouping

another newcomer to xslt here. I have a problem similar to this one - Applying Muenchian grouping for a simple XML with XSLT - but complicated by an extra layer of nodes. I have this XML... datum 1
0
votes
1 answer

XSLT Muenchian method complex

I was trying diferent options using the muenchian method but I don't get the result that I need. This is my input:
0
votes
1 answer

Controlling unique output when many identically named XML elements pass a conditional statement held within a loop

I have developed a simple web page which is generated using a basic XML and XSLT (1.0) file combination approach (without JavaScript). With the help of a loop, my XSLT file constructs a (two column) HTML table containing a new table…
Joel
  • 247
  • 5
  • 15
0
votes
0 answers

Muenchian Grouping rounding issue

I am using muenchian Grouping but this is rounding values. For Ex: 50.00 --> 50 56.90 --> 56.9 This is causing problem with the xml consumer. Below is my stylesheet.
Yauza
  • 180
  • 1
  • 13
0
votes
1 answer

How can I optimize this nested grouping?

I have an XML as below example, that can contain up to 5000 lines, but I've limited it to 20 to be a bit reasonable.
Wokoman
  • 1,089
  • 2
  • 13
  • 30
0
votes
1 answer

How can I merge nodes based on the value of an attribute?

After a first xsl transformation I have a xml output similar to the following one:
Kraal
  • 2,779
  • 1
  • 19
  • 36
0
votes
1 answer

xsl muenchian grouping 3 levels I lost elements of 2nd level

I have been trying to understand muenchian grouping, but have some problems.
Bkmz
  • 19
  • 6
0
votes
1 answer

Group and split Xmldocument on nth level descendant

I want to split an XmlDocument into an array of XmlDocuments, where each splitted XmlDocument contains records of a certain period (Year/Month combination). The complicating factor, imo, is that the grouping should occur on nested elements. Example…
René Bik
  • 5
  • 3
0
votes
1 answer

XSL v.1, Muenchian Grouping, Summing Line Items per Invoice, Call-Template

I'm trying to sum the aggregate of line item amounts in a group with multiple groups. That is, there are many Invoices with many Line Items per Invoice. I need to sum the Amounts of Line Items across each Invoice. I've searched across various posts…
RebelPhoenix
  • 537
  • 1
  • 5
  • 14
0
votes
1 answer

XSLT1 Transformation

I would need to transform this input XML:
nereide
  • 152
  • 8
0
votes
1 answer

Difficulty with nested XSL for-each statement

I am new to XSL and working a bit above my head. I have an xml file (show below) which I wanted to group by month&year. I achieved this with Muenchian Grouping... however that led to a new issue around nested for-each statements. The issue is that…
MattM
  • 3
  • 1