Hi Pietschmann,
 
Thanks for your help. But what I want exactly it is not coming. If  I use underline then the output will be
 
12.11.03
------------
 
So the length of the line depends on text, if the text is too long then line will be long & text is small then line will be short.
 
In my case pdf output will be like this
 
                              12.11.03
                      ----------------------------------
 
I am using <fo:leader> in xsl. But it is not coming.
 
Any suggestion will be appreciated.
 
Regards,
 
Saurabh
 
Here the text.xml is:
 
<?xml version="1.0" encoding="UTF-8"?>

<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 is
 
<?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>
    
    <fo:table-row>
     <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>
    
    <fo:table-row>
     <fo:table-cell>
      <fo:block space-before.optimum="-8pt">
       <fo:leader leader-length="30%" leader-pattern="rule" rule-thickness="0.5px"/>
      </fo:block>
     </fo:table-cell>
    </fo:table-row>
   </fo:table-body>
  </fo:table>
 </xsl:template>
 </xsl:stylesheet>
 
 


"J.Pietschmann" <[EMAIL PROTECTED]> wrote:
shuva sinha wrote:
> 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.

A table is a block level element. You can't use it inline without
the help of an inline container, a fearture which isn't implemented
yet.

It seems you could use underlining:






J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to