I have some xml documents (similar to docbook) that have to be transformed to xsl-fo. Some of the documents contains poems, and the lines of the poems are written in separate p
This stylesheet:
With this input:
Headline
1st line of 1st verse
2nd line of 1st verse
1st line of 2nd verse
2nd line of 2nd verse
3rd line of 2nd verse
Output:
1st line of 1st verse
2nd line of 1st verse
1st line of 2nd verse
2nd line of 2nd verse
3rd line of 2nd verse
With this input:
Headline
1
1st line of 1st verse
2nd line of 1st verse
2
1st line of 2nd verse
2nd line of 2nd verse
3rd line of 2nd verse
Output:
1st line of 1st verse
2nd line of 1st verse
1st line of 2nd verse
2nd line of 2nd verse
3rd line of 2nd verse
So, this stylesheet:
With this input:
Poems
Headline
1st line of 1st verse
2nd line of 1st verse
1st line of 2nd verse
2nd line of 2nd verse
3rd line of 2nd verse
Headline
1
1st line of 1st verse
2nd line of 1st verse
2
1st line of 2nd verse
2nd line of 2nd verse
3rd line of 2nd verse
Output:
1st line of 1st verse
2nd line of 1st verse
1st line of 2nd verse
2nd line of 2nd verse
3rd line of 2nd verse
1st line of 1st verse
2nd line of 1st verse
1st line of 2nd verse
2nd line of 2nd verse
3rd line of 2nd verse