xsl-list
[Top] [All Lists]

Re: have you an idea?

2003-06-11 09:43:11
Abbouh,

I'm sorry, I don't see how the numbers 12 and 32 are generated for paragraph1....

I'm guessing that 12 and 32 are start and end positions in the *output* file.

If this is the case, I suggest you use XSLT for the output but not the table of contents; generate that after the contents are done with another technology, such as Perl or Python. XSLT is not well designed for character-level manipulations.

Good luck,
Wendell

At 07:13 AM 6/11/2003, you wrote:
this is an example for what i want to do:

i supose this is my xml file:
<document>
<para>
<word>aaa</word>
<word>bbb</word>
<word>ccc</word>
<word>ddd</word>
<word>eee</word>
</para>
<para>
<word>kkk</word>
<word>fff</word>
<word>mmm</word>
<word>ppp</word>
</para>
</document>

my output file should have this structure:

table of contents:
paragraph1  12    32
paragraph2  44  59

paragraph1
aaa
bbb
ccc
ddd
eee
paragraph2
kkk
fff
mmm
ppp


so  the first paragraph begin in character 12 and finish in character 32

in the output file.

___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_
    "Thus I make my own use of the telegraph, without consulting
     the directors, like the sparrows, which I perceive use it
     extensively for a perch." -- Thoreau


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



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