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]

RE: Flattening a tree


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@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]De la part de Jeni Tennison
Envoyé : vendredi 14 juillet 2000 17:10
À : Pierre-Yves Saumont
Cc : xsl-list@mulberrytech.com
Objet : RE: Flattening a tree




 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]