This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Is this about grouping ?


>To: XSL-List@lists.mulberrytech.com
>Subject: HELP : Is this about grouping ?
>Date: Fri, 29 Jun 2001 14:43:45 +0100
>Return-Receipt-To: Benoit_Aumars@JLTGROUP.COM
>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"?>
><topic>
>    <element1>text1</element1>
>    <element2>text2</element2>
>    <element3>text3</element3>
>    <element4>text4</element4>
>
>    <element1>text1</element1>
>    <element2>text2</element2>
>    <element3>text5</element3>
>    <element4>text6</element4>
></topic>
>
>I would like to transform it into :
>
><?xml version="1.0"?>
><topic>
>    <element1>text1</element1>
>    <element2>text2</element2>
>        <element3>text3</element3>
>        <element4>text4</element4>
>        <element3>text5</element3>
>        <element4>text6</element4>
></topic>
>
>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
>that.
>
>Thanks,
>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
>http://www.jltgroup.com
>------------------------------------------------------------
>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@mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]