xslt-grouping

XSLT, sort and group by year-date

Hello Regarding Umbraco XSLT version 1. I have aprox. 150 news items in XML. Lets say like this (all is pseudocode until I get more familiar with this xml/xslt): <news> <data alias=date>2008-10-20</data> </news> <news> <data alias=date>2009-11-25</data> </news><news> <data alias=date>2009-11-20</data> </news> etc. etc.... I wo...

Counting distinct items in XSLT

I have XML like this: <assessment> <variables> <variable> <attributes> <variable_name value="FRED"/> </attributes> </variable> </variables> <variables> <variable> <attributes> <variable_name value="MORTIMER"/> </attributes> </variable> </variables> <variables> <variable> <attributes> <variable_n...

Counting distinct items in XSLT independent of depth

If I run the following XSLT code: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:output method="text"/> <xsl:key name="kValueByVal" match="variable_name/@value" use="."/> <xsl:template match="assessment"> <xsl:for-each select=" /*/*/variable/attributes/variable_name/@value ...

Counting distinct items in XSLT and listing only once

I have the following XML: <assessment> <section> <item> <attributes> <variables> <variable> <variable_name value="MORTIMER"/> </variable> </variables> </attributes> </item> <item> ...

Grouping using XSLT 1.0

My XML looks like <xml version="1.0" standalone="no"> <Alerts AlertsName=""> <Alert UserId="13" OwnerId="13" OwnerName="jasprice" OwnerEmail="[email protected]" Scope="I"> <Assets> <Asset> <AssetTaxonamy> <AssetTopics> <AssetTopic Type="Global business">Globalisation</AssetTopic> </AssetTopics> </AssetTaxonamy> <Asse...

pull unique groups from xml using xslt

I realize you can't use arrays in xsl and normally to do the task below it would take an array. Here's what I need... Sample xml code... <products> <product> <productNumber>1</productNumber> <productType>TypeA</productType> </product> <product> <productNumber>2</productNumber> <productType>TypeB</productType> </product> <p...

XSLT grouping continued - xPath issue??

Dimitre was a big help earlier... this is kinda like part two. :) I've been wracking my brain and still don't see it. Now that I'm able to isolate the Brands of the xml example below, now I'd like to isolate all the Product-Type's of the given $Brand in much the same way as I was able to isolate all the Brands. xml example (one member...

How to create html list from flat xml file using XSLT.

Okay guys I think this is a tricky one... I am looking for a clean way to do the following using XSLT: Convert this source: <para>blah blah</para> <list>num1</list> <list>num2</list> <list>num3</list> <para>blah blah</para> <list>num1</list> <list>num2</list> <para>blah blah blah blah blah</para> To this output: <p>blah blah</p> <o...