Two fo:blocks in same line!

Here should go questions about transforming XML with XSLT and FOP.
mu258770
Posts: 157
Joined: Mon Aug 18, 2014 4:11 pm

Two fo:blocks in same line!

Post by mu258770 »

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

Note:

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.

Regards,
Shabeer
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Two fo:blocks in same line!

Post by Radu »

Hi Shabeer,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply