Hi Mark,

 

I haven’t create any table yet in my xsl-fo. I don’t know how to do it? Can you pl help me with small example?

 

Thanks

Jasmin

 

-----Original Message-----
From: Mark Baier [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, March 26, 2003 11:32 AM
To: [EMAIL PROTECTED]
Subject: AW: xsl-fo question for <fo:block>

 

Hi,

 

you should build a table with 8 columns,

within each you can set a block with its different font and size.

 

greez,

mark

-----Urspr�ngliche Nachricht-----
Von: Jasmin Mehta [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 26. M�rz 2003 17:29
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: xsl-fo question for <fo:block>

Hi,

 

I want to create PDF output from xml document using xsl-fo. The required format is, should get label-text, label-text, label-text, label-text all 4 pairs in single row. Also I want to keep this as a header of the page.

 

For example,

 

Patient: Gina Latta�������������������������� Age :60������������������������ Sex: M���������������� Patient ID#: 7678678768

 

Also all labels must be bold and have different font/size than respective text value.

 

I am trying with below code:

 

<fo:static-content flow-name="xsl-region-before">

�����

����� <fo:list-block provisional-distance-between-starts="3cm"

��������� provisional-label-separation="0.15cm" font-size="12pt">

�������

��������� <!-- list item for Patient Name -->

��������� <fo:list-item>

�������������������

������������ <fo:list-item-label end-indent="label-end()">

�������� �� <fo:block text-align="start"

������������������������� font-size="12pt"

������������������������� font-family="serif"

������������������������� font-weight="bold"

������������������������� line-height="14pt">

����������������� Patient:

��������������� </fo:block>

������������ </fo:list-item-label>

�������������������

������������ <fo:list-item-body start-indent="1.5cm">

��������������� <fo:block text-align="left" space-after.optimum="14pt" white-space-collapse="false">

������������ �������<xsl:apply-templates select="Patient_LName"/>, <xsl:apply-templates select="Patient_FName"/>

���������������� </fo:block>

������������ </fo:list-item-body>

������������

�������� </fo:list-item>���

��������

�������� <fo:list-item>

������������

����������� <fo:list-item-label end-indent="label-end()">

�������� �� <fo:block text-align="start"

������������������������� font-size="12pt"

������������������������� font-family="serif"

������������������������� font-weight="bold"

���������������������� ���line-height="14pt">

����������������� Age:

��������������� </fo:block>

������������ </fo:list-item-label>������������

������������

������������ <fo:list-item-body start-indent="1.5cm">

����������� �������� <fo:block text-align="left" space-after.optimum="14pt" white-space-collapse="false">

����������� ���������� <xsl:apply-templates select="Note_2"/>

����������� �������� </fo:block>

������������ </fo:list-item-body>

��������

�������� </fo:list-item>

</fo:static-content>

 

 

But it is displaying the result in separate rows.

 

‘Patient: name’���

‘Age��� : age’

 

 

Please help.

 

Thanks

Jasmin

Reply via email to