[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: for-each-group in xslt 2.0

Subject: RE: for-each-group in xslt 2.0
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 29 Mar 2006 08:58:51 +0100
odcs2web
Difficult to know what to advise since you don't explain what output you are
trying to achieve. Your logic is clearly wrong as Dimitre points out, but
I've no idea what you had in mind.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Arulraj [mailto:p_arulraj@xxxxxxxxx] 
> Sent: 29 March 2006 07:30
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  for-each-group in xslt 2.0
> 
> Hello List,
>   
> I am using the following XML input sequence,
>   <?xml version="1.0" encoding="UTF-8"?>
>   <layout>
>       <Application name="odcs2web">
>           <Processgroup name="FSRenta">
>               <Process name="sample">
>                   <PanelName name="H2WSearchLayout"/>
>                   <PanelName name="H2WListAllLayout"/>
>                   <PanelName name="H2WEditLayout"/>
>                   <PanelName name="H2WNewLayout"/>
>               </Process>
>               <Process name="sampleflowinfo">
>                   <PanelName name="H2WListFlowInfo"/>
>                   <PanelName name="H2WAddFlowInfo"/>
>                   <PanelName name="H2WUpdFlowInfo"/>
>                   <PanelName name="H2WDelFlowInfo"/>
>               </Process>
>           </Processgroup>
>       </Application>
>       <Application name="bvwinfo">
>           <Processgroup name="bvwinfogrp">
>               <Process name="bvw1">
>                   <PanelName name="screen1"/>
>               </Process>
>               <Process name="bvw2">
>                   <PanelName name="screen2"/>
>               </Process>
>           </Processgroup>
>       </Application>
>   </layout>
>   
>   And XSLT.. i have the following code.
>   
>   <?xml version="1.0" encoding="ISO-8859-1"?>
>   <xsl:stylesheet version="2.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>       <xsl:template match="layout">
>           <xsl:for-each-group select="Application" 
> group-by="Application">
>                   <xsl:value-of
> select="current-group()/@name"/>
>           </xsl:for-each-group>    
>         </xsl:template>
>   
> I try to get the Application name. but i didnt get any
> ouptut..
> what is wrong here?
>   
> regards,
> Arul
> 
> 
> 		
> __________________________________________________________ 
> Yahoo! India Matrimony: Find your partner now. Go to 
> http://yahoo.shaadi.com

Current Thread

Back To School Sale!

Save 30% off all Stylus Studio 2008 Products when you purchase from our Online Shop.

Offer ends August 31, 2008.

Coupon Code
TRTY-C4JV-OFF

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.