Thanks Mark.

 

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

 

Hi Jasmin,

 

it should look something like this,

 

<fo:table table-layout="fixed" width="100%">

    <fo:table-column column-width="0.3cm"/>

    <fo:table-column column-width="1cm"/>

    <fo:table-column column-width="24.7cm"/>

    <fo:table-column column-width="1cm"/>

    <fo:table-body font-size="10pt" font-family="sans-serif">

        <xsl:apply-templates select="" mode="createTable"/>

    </fo:table-body>

</fo:table>

 

<fo:table-row line-height="12pt">

    <fo:table-cell/>

    <fo:table-cell>

        <fo:block>

            <xsl:value-of select="@gp_gliederungsnummer"/><xsl:text>.</xsl:text>

        </fo:block>

    </fo:table-cell>

    <fo:table-cell>

        <fo:block text-align="left">

            <xsl:value-of select="@gp_bezeichnung"/>

        </fo:block>

    </fo:table-cell>

    <fo:table-cell>

        <fo:block text-align="right">

            <fo:page-number-citation ref-id="{concat($gfLinkId,generate-id())}"/>

        </fo:block>

    </fo:table-cell>

</fo:table-row>

 

on each table-cell in the row you can apply some templates to get the values.

 

Hope this helps,

 

Mark

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

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