xsl-list
[Top] [All Lists]

Re: [xsl] Grouping problem

2009-04-04 11:43:02
No, I need the text fragments elements

Vincent

2009/4/4 Martin Honnen <Martin(_dot_)Honnen(_at_)gmx(_dot_)de>:
Vincent De Groote wrote:

I need to structure a document, based on text fragments.

I have a flat xml file like this:

<document>
 <text-fragment function='section' level='1'> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>

 <text-fragment function='section' level='2'> Some text </text-fragment>

 <text-fragment> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>

 <text-fragment function='section' level='2'> Some text </text-fragment>

 <text-fragment> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>

 <text-fragment function='section' level='1'> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>
 <text-fragment> Some text </text-fragment>

<document>

and I want to structure the document like this:

<document>
  <section>
       Some text-fragments ...

Do you want simply the text nodes here? Or <text-fragment></text-fragment>
elements?


--

       Martin Honnen
       http://JavaScript.FAQTs.com/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>