Two fo:blocks in same line!

Here should go questions about transforming XML with XSLT and FOP.
Posts: 106

Two fo:blocks in same line!

Wed Jul 20, 2016 10:22 am

Hi team,

I have a query related to xsl:fo generated PDF.

I need to give a static text for a paricular element. For example, consider a <note>, I want to give a generated text "Note:" for the same always in my PDF output. But also I would like to have the content in <note> should always come with the generated text "Note:" and flow.

Currently, If I am having only direct content inside <note>, then the content is coming proper.
But if I am having <note> with <p> inside it, then my output will come like below,

Code: Select all


content in p

But I would like it to come in the same line like below,

Code: Select all

Note: content in p.

This is possible by using <table> and <list-block>. But if I use table it will be like two column alignment. I would not need it to be two columned. If i use list-block,there will be a problem if multiple <p> s are there.

Could you please let me know if you have any suggestion.

Posts: 5585

Re: Two fo:blocks in same line!

Thu Jul 21, 2016 3:21 pm

Hi Shabeer,

We are not experts in XSL-FO so you should try to find a dedicated mailing list for this.

Radu Coravu
<oXygen/> XML Editor

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests