Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 13th, 2006, 03:02 AM
Registered User
Join Date: Jun 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default getting distinct values from attribute

how to get distinct values on a attribute? like:


<family name="Kay" childs="Martin Rachel Michael Lara"/>
<family name="Smith" childs="Rod Martin"/>
<family name="Payne" childs="Lisa Britney"/>


<family name="Kay">
  <child name="Martin"/>
  <child name="Rachel"/>
  <child name="Michael"/>
  <child name="Lara"/>

<family name="Smith">
  <child name="Rod "/>
  <child name="Martin"/>

How to do it and how can be the childs-Attribute on the input distinguished?


Old June 13th, 2006, 03:06 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

Please see http://www.jenitennison.com/xslt/grouping

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
count distinct values Chris Cash XSLT 3 June 8th, 2006 04:55 PM
Access to attribute values from class of attribute jacob C# 1 October 28th, 2005 01:11 PM
distinct-values in Javascript Jan1 XML 2 October 10th, 2005 04:56 AM
Distinct values of data arnabghosh Access 18 September 13th, 2005 05:41 PM
to get Distinct Node depending on attribute value chaitanyaXML XML 5 March 29th, 2005 10:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.