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

Re: Is this about grouping ?

Subject: Re: Is this about grouping ?
From: tcn@xxxxxxxxxxxxx (Trevor Nash)
Date: Mon, 02 Jul 2001 12:26:20 GMT
mike trevor
Hi Benoit,

>Mike, Trevor,
>
>Thanks for your reply.
>Obviously I did not clearly explained my problem.
>
Agreed ;-)

>Let's start again.

Yes lets.  Only this time please try to explain what the problem is,
rather than giving us examples and making us guess.  Try to explain
the required logic *without* examples.  Who knows, if you do that you
might even find the answer yourself.

>This is my original source ( with the correct indentation ) :
What is the 'correct' indentation?  I assume the blank line means
something - what?  Tell us what a valid document is, what the elements
mean.  There is obviously some difference between a/b and the other
letters, as you have tried to indicate by saying ItemA instead of
text1.

Expand on:
>So, I need to group by <a> and <b>. Those elements are constant in the
>source document.
>I will ignore the sort order because the original source is already sorted.

>What I would like you to help me is how can I use <xsl:for-each> :
>1. to have a proper indentation from <f> to <i> ?
Tell us what 'proper indentation is.  The answer may not have anything
to do with xsl:for-each.

>2. to concatenate 2 elements ,i.e <f> and <g> into <new>, so the final
>result is :
What is it that tells you this should be done?  Does <g> always
immediatly follow <f>?  If there is no <g> what happens?  I guess you
want something like following:: or following-sibling:: but its hard to
tell.

I agree with Mike, the structure of your XML is probably wrong, or at
least not good.

I am sorry I am not answering the question you are asking, but I hope
this helps anyway.

Regards,
Trevor Nash
--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

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-2013 All Rights Reserved.