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 May 26th, 2011, 02:46 PM
Registered User
 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default URGENT:parsing issue

Hi,
i have the xml below
<data>
<record slno="1" property="Distribution" operator="=" value="value1"/>
<record value="value2"/>
<record property="Distribution1aaa" operator="!=" value="value3"/>

<record slno="2" property="Distribution2" operator="=" value="value4"/>
<record value="value5"/>

</data>

i want to take group of records based on node slno.
for ex:
first iteration:<record slno="1" property="Distribution" operator="=" value="value1"/>
<record value="value2"/>
<record property="Distribution1aaa" operator="!=" value="value3"/>


second iteration:
<record slno="2" property="Distribution2" operator="=" value="value4"/>
<record value="value5"/>

please help
 
Old May 26th, 2011, 06:53 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Try <xsl:for-each-group group-starting-with="record[@slno]">
__________________
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
Performance and Maintainability issue - Urgent mike_remember ASP.NET 4 General Discussion 1 March 23rd, 2011 12:41 PM
Com issue(really urgent) balesh.mind ASP.NET 2.0 Professional 2 May 14th, 2008 03:35 AM
Urgent Issue to be sorted out mike_remember ASP.NET 1.0 and 1.1 Professional 5 November 1st, 2006 10:52 AM
Urgent help regarding XSLT parsing.... to xml.. netbramha XSLT 1 September 19th, 2005 09:03 AM
DEADLOCK issue - URGENT! Ron Howerton SQL Server ASP 3 August 9th, 2005 04:33 PM





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