[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] how can i get a sub-tree(between two chapter)


Subject: [xsl] how can i get a sub-tree(between two chapter)
From: abbouh <abbouh@xxxxxxxxxxxxxxxxx>
Date: Wed, 25 Jun 2003 09:57:45 +0000

i have this structure in my input file:

docbody|---chap1
                           |---ht
                           |---(para|list|notesect)*
                           |---chap2
                           |              |---ht
                           |              |---(para|list|notesect)*
                           |              |---chap3
                           |              |             |---ht
                           |              |
|---(para|list|notesect)*
                           |              |
                           |              | ---chap3
                           |              |             |---ht
                           |              |
|---(para|list|notesect)*
                           |              |
                           |              |---chap3
                           |              |             |---ht
                           |              |
|---(para|list|notesect)*
                           |
                           |---chap2
                                         |---ht
                                         |---(para|list|notesect)*
                                         |---chap3
                                         |             |---ht
                                         |
|---(para|list|notesect)*
                                         |
                                         | ---chap3
                                         |             |---ht
                                         |
|---(para|list|notesect)*
                                         |
                                         |---chap3
                                         |             |---ht
                                         |
|---(para|list|notesect)*


and i want for each chapter get its length,so how can i get a
sub-tree(between two chapter) in this file like:

-for chapter1:

chap1
         |---ht
         |---(para|list|notesect)*

-for chapter2:

 |---chap2
             |---ht
             |---(para|list|notesect)*


-for chapter3:

 |---chap3
             |---ht
             |---(para|list|notesect)*

thanks.





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



Current Thread