Hallo,
(Excuse me for writing in English, but my German is not good enough yet)
I have the following problem. I have an xml of the kind:
<root>
<paragraph id="1">
<word id="1">aword</word>
<word id="2">aword</word>
<word id="3">aword</word>
<word id="4">aword</word>
<word id="5">aword</word>
<word id="6">aword</word>
<word id="7">aword</word>
...
<word id="n">aword</word>
<paragraph>
<paragraph id="2">
<word id="1">aword</word>
<word id="2">aword</word>
<word id="3">aword</word>
...
<word id="n">aword</word>
<paragraph>
...
<paragraph id="n">
<word id="1">aword</word>
<word id="2">aword</word>
<word id="3">aword</word>
...
<word id="n">aword</word>
<paragraph>
</root>
I'd like to use xsl-fo to create a pdf which has the corresponding
paragraphs containing their words. But on the left, at the same line
level where a word is located, there must appear the id of that word
put in the corresponding line, separated with a coma.
for example (properly seen with "Arial" font):
-----------------------------------------
.....id-s | text
-----------------------------------------
..............| paragraph 1:
1,2,3,4 | word1 word2 word3 word4
5,6,7,8 | word5 word6 word7 word8
9,10.... | word9 word10
.............|
.............| paragraph 2:
1,2,3,4 | word1 word2 word3 word4
5,6.......| word5 word6
.............|
.............| paragraph 3:
...
-----------------------------------------
Of course it must be done in a way that the change of the words, or
count of words in a paragraph doesn't result in a manual change in
xsl-fo code to keep the numbers at the corresponding level.
Is that possible and how?
Thanks
Regards,
Kiril
(Excuse me for writing in English, but my German is not good enough yet)
I have the following problem. I have an xml of the kind:
<root>
<paragraph id="1">
<word id="1">aword</word>
<word id="2">aword</word>
<word id="3">aword</word>
<word id="4">aword</word>
<word id="5">aword</word>
<word id="6">aword</word>
<word id="7">aword</word>
...
<word id="n">aword</word>
<paragraph>
<paragraph id="2">
<word id="1">aword</word>
<word id="2">aword</word>
<word id="3">aword</word>
...
<word id="n">aword</word>
<paragraph>
...
<paragraph id="n">
<word id="1">aword</word>
<word id="2">aword</word>
<word id="3">aword</word>
...
<word id="n">aword</word>
<paragraph>
</root>
I'd like to use xsl-fo to create a pdf which has the corresponding
paragraphs containing their words. But on the left, at the same line
level where a word is located, there must appear the id of that word
put in the corresponding line, separated with a coma.
for example (properly seen with "Arial" font):
-----------------------------------------
.....id-s | text
-----------------------------------------
..............| paragraph 1:
1,2,3,4 | word1 word2 word3 word4
5,6,7,8 | word5 word6 word7 word8
9,10.... | word9 word10
.............|
.............| paragraph 2:
1,2,3,4 | word1 word2 word3 word4
5,6.......| word5 word6
.............|
.............| paragraph 3:
...
-----------------------------------------
Of course it must be done in a way that the change of the words, or
count of words in a paragraph doesn't result in a manual change in
xsl-fo code to keep the numbers at the corresponding level.
Is that possible and how?
Thanks
Regards,
Kiril