Hi,
I am trying to code a something quite simple which is complicated greatly by xsl-fo inline and block level elements.
Here is a sample of the XML:
<quote-block open=""" close=""">
<quote-para>text...</quote-para>
<list>
<item>...</item>
<item>...</item>
</list>
<quote-paragraph>
<para>...</para>
<list>
<item>...</item>
</list>
</quote-paragraph>
</quote-block>
The attributes open & close are supposed to drive the opening and closing quote marks to appear around the enclosed content.
The problem I have is that because a list in fo is a block level item, I can't get the closing quote-mark to appear inline at the end of the content. It currently ends up on the start of the next line.
I can get round this by adding a load of code to each possible item to determine if its the last element in a quote and then displaying the close quote mark. But this is proving complicated to debug when it goes wrong, as the elements in the quote can be at any level and nested multiple times.
Does anyone have any ideas on how to solve this?
Thanks