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
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,
Here the text.xml file


<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>

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: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:page-sequence master-reference="main">

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







<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:template match="date">


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


<!-- 1st row -->



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

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




<!-- 2nd row -->



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

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








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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:28 UTC