muenchian-grouping

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): XSLT <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www...

XSLT - Accessing Key's by index - For example, in Muenchian Grouping

<listings> <property rln="r317080" firm="f102" agent="a2140"> <street>2638 Maple Avenue</street> <city>Padua</city> <state>WI</state> <zip>53701</zip> <price>229000</price> <style>2 Story Contemporary, Transitional</style> <sqfeet>2328</sqfeet> <bathrooms>2 1/2</bathrooms> <bedroom...

XSLT Grouping and subgrouping

I have the following code: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:output method="html" /> <xsl:key name="categories" match="Category" use="." /> <xsl:key name="clients" match="Category" use ="Category/Client" /> <xsl:template match="/"> <ul id="red" class="treeview-red">...

Sums and Category Grouping with XSLT

With XSLT, how can I change the following: <root> <element id="1" State="Texas" County="Dallas" Population="2412827" /> <element id="2" State="Texas" County="Harris" Population="3984349" /> <element id="3" state="Georgia" County="Fulton" Population="1014932" /> <element id="4" state="Georgia" County="Richmond" Population="212775...

XSLT: Display unique rows of filtered XML recordset

I've got a recordset that I'm filtering on a particular field (i.e. Manager ="Frannklin"). Now I'd like to group the results of that filtered recordset based on another field (Client). I can't seem to get Muenchian grouping to work right. Any thoughts? TIA! CG My filter looks like this: <xsl:key name="k1" match="Row" use="@Manager"...

XSLT 1.0 grouping to reformat element defined by date into element defined by task

Hi folks, I have a tricky XSLT transformation and I'd like your advise My xml is formatted as below: <Person> <name>John</name> <date>June12</date> <workTime taskID=1>34</workTime> <workTime taskID=2>12</workTime> </Person> <Person> <name>John</name> <date>June12</date> <workTime taskID=1>21</workTime> <workTime taskID=2>11</workTime> ...

Use XSLT to enumerate Nodes with the same name

Hi, I have many many XML files that often contain nodes mutiple times (each time with different data). Example: <?xml version="1.0" encoding="UTF-8"?> <SomeName> <Node> DataA </Node> <Node> DataB </Node> <Node> DataC </Node> <AnotherNode> DataD </A...

XSLT 1.0: grouping and removing duplicate

Hi, I have a xml grouping challenge for which I need to group AND remove duplicate as below: <Person> <name>John</name> <date>June12</date> <workTime taskID=1>34</workTime> <workTime taskID=1>35</workTime> <workTime taskID=2>12</workTime> </Person> <Person> <name>John</name> <date>June13</date> <workTime taskID=1>21</workTime> <workTime...