W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2003

XSL-FO Problem (Line not coming as proper location)

From: shuva sinha <xsl_fo_info@yahoo.co.in>
Date: Thu, 20 Nov 2003 10:26:16 +0000 (GMT)
Message-ID: <20031120102616.87291.qmail@web8101.in.yahoo.com>
To: www-xsl-fo@w3.org
Hi,
 
I am facing some problems  at the time of writing xsl-fo. In pdf output below date (which is given below in xml document) line will come. I have given fo:leader in xsl-fo for the line. But both the date & line are not coming what is supposed to be as per xml document. 
 
Any suggestion or help will be apprciated.
 
Thanks & Regards,
 
Saurabh
 
 
Here the text.xml file
--------------------------------

<pdf-doc>

<para>This is normal text within paragraph. This is normal text within paragraph. <date>12.11.03</date>This is normal text within paragraph. This is normal text within paragraph. </para>

</pdf-doc>
Here the text.xsl file
-----------------------------------
 

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="/">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>

<fo:simple-page-master master-name="main" margin-top="25pt" margin-bottom="25pt" margin-left="75pt" margin-right="85pt">

<fo:region-body margin-bottom="75pt"/>

</fo:simple-page-master>

</fo:layout-master-set>

<fo:page-sequence master-reference="main">

<fo:flow flow-name="xsl-region-body">

<xsl:apply-templates/>

</fo:flow>

</fo:page-sequence>

</fo:root>

</xsl:template>

 

<xsl:template match="para">

<fo:block font-family="sans-serif" font-size="7pt" line-height="8pt" space-before.optimum="8pt" space-after.optimum="8pt" start-indent="-15pt">

<xsl:apply-templates/>

</fo:block>

</xsl:template>





<xsl:template match="date">

<fo:table>

<fo:table-column column-width="30pt"/>

<fo:table-body>

<!-- 1st row -->

<fo:table-row>s

<fo:table-cell>

<fo:block font-size="7pt" font-family="Helvetica, Arial, sans" space-before.optimum="-2pt" font-weight="bold">

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

</fo:block>

</fo:table-cell>

</fo:table-row>

<!-- 2nd row -->

<fo:table-row>

<fo:table-cell>

<fo:block space-before.optimum="-8pt">

<fo:leader leader-length="100%" leader-pattern="rule" rule-thickness="0.5px"/>

</fo:block>

</fo:table-cell>

</fo:table-row>

</fo:table-body>

</fo:table>

</xsl:template>

</xsl:stylesheet>

current text.pdf is attached for your reference.

 

 

 

 

 



Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and more.Download now.

Received on Thursday, 20 November 2003 05:26:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT