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 August 3rd, 2012, 08:08 AM
Registered User
 
Join Date: Jul 2012
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks to Martin, " distinct-values(//type/@t) " has helped in getting the distinct values.
 
Old August 3rd, 2012, 11:58 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Your code snippets using for-each-group and distinct-values look fine. If they aren't working please show a complete source document and stylesheet, explain what output you expected, and what output you got.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
removing duplicate elements and collecting all sub nodes together john007 XSLT 1 March 9th, 2012 05:09 PM
removing duplicate nodes nguna XSLT 6 February 16th, 2009 10:40 AM
How do you get Rid of quotes hewstone999 Access VBA 1 April 15th, 2008 10:42 AM
Removing duplicate nodes post-process QuickSilver002 XSLT 3 April 4th, 2007 03:47 PM
Duplicate nodes get the value from first node dev.user06 XSLT 6 August 8th, 2006 11:33 AM





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