RE: Flattening a tree

Subject: RE: Flattening a tree
From: "Pierre-Yves Saumont" <pys@xxxxxxxx>
Date: Fri, 14 Jul 2000 18:58:01 +0200
Jeni,

As I was saying is the first message of this thread, the problem is to
differentiate two categories of elements : those which must be flattened and
those which must not. The first category must be layed out verticaly (let's
call them "paragraphs") with no nesting. The other category (inlines) must
be layed out horizontaly, with whatever level of nesting is needed. So :

<document>
  <para>
    content-1
    <List>
      <Item>content-2 <i>italic</i> normal</Item>
      <Item>content-3 <inlineGraphic/></Item>
    </List>
    content-4
    <graphic/>
    content-5
  </para>
</document>

should be transformed into :

<document>
    <para>content-1</para>
    <Item>content-2 <i>italic</i> normal</Item>
    <Item>content-3 <inlineGraphic/></Item>
    <para>content-4</para>
    <graphic/>
    <para>content-5</para>
</document>

because <i> and <inlineGraphic> elements must stay "inline".

Anyway, thanks for your help,
Pierre-Yves

-----Message d'origine-----
De : owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]De la part de Jeni Tennison
Envoyé : vendredi 14 juillet 2000 17:10
À : Pierre-Yves Saumont
Cc : xsl-list@xxxxxxxxxxxxxxxx
Objet : RE: Flattening a tree




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


Current Thread