[xsl] Is this about grouping ?

Subject: [xsl] Is this about grouping ?
From: Mulberry Technologies List Owner <xsl-list-owner@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Jun 2001 15:18:14 -0400
>To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
>Subject: HELP : Is this about grouping ?
>Date: Fri, 29 Jun 2001 14:43:45 +0100
>Return-Receipt-To: Benoit_Aumars@xxxxxxxxxxxx
>MIME-Version: 1.0
>X-Mailer: Internet Mail Service (5.5.2653.19)
>Content-Type: text/plain; charset="iso-8859-1"
>Hi all,
>Here is my problem ( newbies question ).
>My original source is like this :
><?xml version="1.0"?>
>    <element1>text1</element1>
>    <element2>text2</element2>
>    <element3>text3</element3>
>    <element4>text4</element4>
>    <element1>text1</element1>
>    <element2>text2</element2>
>    <element3>text5</element3>
>    <element4>text6</element4>
>I would like to transform it into :
><?xml version="1.0"?>
>    <element1>text1</element1>
>    <element2>text2</element2>
>        <element3>text3</element3>
>        <element4>text4</element4>
>        <element3>text5</element3>
>        <element4>text6</element4>
>As you see, the common element are <element1> and <element2>.
>My questions are :
>1. as I'm really new to XSLT, is this related to multi-pass issue or
>grouping issue
>   ( Muenchian, Kaysian, etc ) ?
>2. how can I generate a correct indentation in the result tree ( XML output
>) as above ?
>   I mean how is it possible for me to generate, say, for that element the
>indentation is
>   4 chars ( 1 tab ), but for that element is 8 chars ( 2 tabs ) ?
>If you find my questions are too basics, rather than suggest me to read the
>on-line tutorials,
>buy those XSLT books, etc, please ignore my questions.
>If you think that we can advice, guide, and learn each others, I appreciate
>Benoit Aumars.
>JLT Management Services Limited
>6 Crutched Friars, London EC3N 2PH. Co Reg No 1536540
>Tel: (44) (0)20 7528 4000   Fax: (44) (0)20 7528 4500
>The content of this e-mail (including any attachments) as
>received may not be the same as sent. If you consider that
>the content is material to the formation or performance of
>a contract or you are otherwise relying upon its accuracy,
>you should consider requesting a copy be sent by facsimile
>or normal mail.  The information in this e-mail is
>confidential and may be legally privileged. If you are not
>the intended recipient, please notify the sender immediately
>and then delete this e-mail entirely - you must not retain,
>copy, distribute or use this e-mail for any purpose or
>disclose any of its content to others.
>Opinions, conclusions and other information in this e-mail
>that do not relate to the official business of JLT
>Management Services Limited shall be understood as neither
>given nor endorsed by it.  Please note we intercept and
>monitor incoming / outgoing e-mail and therefore you should
>neither expect nor intend any e-mail to be private in nature.
>We have checked this e-mail for viruses and other harmful
>components and believe but not guarantee it virus-free prior
>to leaving our computer system.  However, you should satisfy
>yourself that it is free from harmful components, as we do
>not accept responsibility for any loss or damage it may
>cause to your computer systems.

B. Tommie Usdin                        mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com  
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML              

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

Current Thread