You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by David Neary <Da...@phenix.fr> on 2003/05/22 11:48:11 UTC

RE: Showing the name of the elements (user defined xml tag) in pd f using FOP

> De : Zahidul Islam [mailto:fazahidal@yahoo.com]

> <xsl:templates match="item_details">
> <xsl:apply-templates select="attributes"/>
> </xsl:templates>
> <xsl:templates match="attributes">
> <xsl:apply-templates/>
> </xsl:templates>

If you use 

  <xsl:template match="attributes">
    <xsl:for-each select="*">
      <xsl:value-of select="name()"/>
      <xsl:text>: </xsl:text>
      <xsl:apply-templates/>
    </xsl:for-each>
  </xsl:template>

that should work better.

Cheers,
Dave.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: diplaying text/image in particular (x,y) coordinate in FO

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Zahidul Islam wrote:
> I am now facing problem as i have to display all the text or images at there
> specific position determined by the x,y coordinate. For example, let i have
> to show the following :
> 
> Name : Zahidul Islam                           My Image will Shown here
> 
> Designation : Programmer
> 
> here 'Name' will be at (x,y) = (200,100), 'Zahidul Islam' will be at (x,y) =
> (210,100), 'Designation' will be at (x,y) = (200,110), 'Programmer' will be
> at (x,y) = (215,110) and the image will be at (x,y) = (700,100).

Try an absolutely positioned block container:
   <fo:block-container position="absolute" top="200mm" left="110mm"
    height="10mm" width="30mm">
     <fo:block>Designation: pragrammer</fo:block>
   <fo:block-container>
IIRC the coordinates are counted from the top left of the page, but
you'll surely find this out yourself. You must supply both height
and width to the container.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


diplaying text/image in particular (x,y) coordinate in FO

Posted by Zahidul Islam <fa...@yahoo.com>.
At first thanks for getting reply of my early request. 
 
I am now facing problem as i have to display all the text or images at there specific position determined by the x,y coordinate. For example, let i have to show the following :
 
Name : Zahidul Islam                           My Image will Shown here
                                                          
Designation : Programmer                                 
 
here 'Name' will be at (x,y) = (200,100), 'Zahidul Islam' will be at (x,y) = (210,100), 'Designation' will be at (x,y) = (200,110), 'Programmer' will be at (x,y) = (215,110) and the image will be at (x,y) = (700,100).
 
So is it possible to place these data at specified position if the coordinates can be found from xml which is translated by xsl, xsl fo to generate the pdf.
 
waiting for reply.  


---------------------------------
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.