RE: [xsl] Is this about grouping ?

Subject: RE: [xsl] Is this about grouping ?
From: Benoit_Aumars@xxxxxxxxxxxx
Date: Mon, 2 Jul 2001 13:59:16 +0100
Trevor,

Thanks for your reply.

> What is the 'correct' indentation?  I assume the blank line means
> something - what?
This is the original source :
<?xml version="1.0"?>
<topic>
	<a>ItemA</a>
	<b>ItemB</b>
	<f>text1</f>
	<g>text2</g>
	<h>text3</h>
	<i>text4</i>

	<a>ItemA</a>
	<b>ItemB</b>
	<f>text5</f>
	<g>text6</g>
	<h>text7</h>
	<i>text8</i>

	<a>ItemA</a>
	<b>ItemB</b>
	<f>text9</f>
	<g>text10</g>
	<h>text11</h>
	<i>text12</i>
</topic>
I should say that each child element has one tab.
Does it make sense for you ?
The blank line does not mean anything, it's just to give a better
readability.

> 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.
The transformation that I want is to concatenate <f> and <g>.
<g> always immediately follow <f>. The document contain all child element
<a>, <b>, <f> ,<g>, <h>, and <i>, so <g> is always there. It may that <g>
is an empty node.

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

If you have a flat file like this :
  a        b         f        g       h       i            <-- column header
ItemA    ItemB     text1    text2    text3   text4
ItemA    ItemB     text5    text6    text7   text8
ItemA    ItemB     text9    text10   text11  text12

I guess the structure of the above XML is correct, unless you other opinion.

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.
************************************************************

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


Current Thread