xsl-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...

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): <article> <h1>A section title here</h1> <p>A paragraph.</p> <p>Another paragraph.</p> <bl>Bulleted list item.</bl> <bl>Another bu...

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: <p>Here is some random text with an email address <Link>example</Link><Link>@example.com</Link> and here is more random text with a url <Link>http://www.&lt;/Link&gt;&lt;Link&gt;example.com&lt;/Link&gt; near ...

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">...

XSLT: Grouping and sorting....how?

Hi... I have an XML file that looks like the following... <states> <state> <name>North Carolina</name> <city>Charlotte</city> </state> <state> <name>Alaska</name> <city>Fairbanks</city> </state> <state> <name>Virginia</name> <city>Leesburg</city> </state> <state> <name>Alaska</name> <city>Coldfoot</city> </st...