473,385 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help! - height disable valign operation (XSL FO)

Hi there,

I'm using the FOP from xml.apache.org/fop tool to convert from HTML
to PDF.

I'm reading the height and valign attributes of a column-cell (TD) in
the XSL
file:
<!-- HTML table tag <td> -->
<xsl:template match="td">
<fo:table-cell xsl:use-attribute-sets="table.data.td">
<xsl:if test="@valign">
<xsl:attribute name="display-align">
<xsl:value-of select="@valign"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@height">
<xsl:attribute name="height">
<xsl:value-of select="concat(@height,'px')"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@class='smalltextwb'">
<xsl:attribute name="font-family">Verdana, Arial, Helvetica,
sans-serif</xsl:attribute>
<xsl:attribute name="font-size">10px</xsl:attribute>
<xsl:attribute name="font-weight">normal</xsl:attribute>
<xsl:attribute name="color">#FFFFFF</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:if test="@align">
<xsl:attribute name="text-align">
<xsl:value-of select="@align"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>

When the pdf is generated, the valign doesnt work when the height is
mentioned
on the HTML:

<td height="100" valign="center"> --> Doesnt work

<td valign="center"> --> works

Does anyone has any idea why the height property prevents the aligning
of the column cell on the PDF?

Any help will be great,
James
Jul 20 '05 #1
1 3263
You should subscribe to the FOP user mailing list.
Information can be found here:
http://xml.apache.org/fop/maillist.html

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"james" <ja*********@hotmail.com> wrote in message
news:e2**************************@posting.google.c om...
Hi there,

I'm using the FOP from xml.apache.org/fop tool to convert from HTML
to PDF.

I'm reading the height and valign attributes of a column-cell (TD) in
the XSL
file:
<!-- HTML table tag <td> -->
<xsl:template match="td">
<fo:table-cell xsl:use-attribute-sets="table.data.td">
<xsl:if test="@valign">
<xsl:attribute name="display-align">
<xsl:value-of select="@valign"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@height">
<xsl:attribute name="height">
<xsl:value-of select="concat(@height,'px')"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@class='smalltextwb'">
<xsl:attribute name="font-family">Verdana, Arial, Helvetica,
sans-serif</xsl:attribute>
<xsl:attribute name="font-size">10px</xsl:attribute>
<xsl:attribute name="font-weight">normal</xsl:attribute>
<xsl:attribute name="color">#FFFFFF</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:if test="@align">
<xsl:attribute name="text-align">
<xsl:value-of select="@align"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</fo:block>
</fo:table-cell>
</xsl:template>

When the pdf is generated, the valign doesnt work when the height is
mentioned
on the HTML:

<td height="100" valign="center"> --> Doesnt work

<td valign="center"> --> works

Does anyone has any idea why the height property prevents the aligning
of the column cell on the PDF?

Any help will be great,
James

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John Kooistra | last post by:
Hi! I'm looking to generate an HTML table via XSL using XML data. Specifically, I want to arrange my data in a table with rows of 6 columns. So, I have this conditional XSL statement setup to...
1
by: - Dazed | last post by:
The following works well while using NS or IE but not Opera. In Opera, a blank window is opened. Anyone have a suggestion on what to change to make it work in all three? Thanks for any and all...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
5
by: Chris Kettenbach | last post by:
Good Morning, Sorry for xposting. Just need a liitle help. I have an xml file that's generated from a database. How do I select distinct values from a field in xslt and then loop through the...
2
by: Dominik Amon | last post by:
Hi The Transform engine seams to fool me, first it says: 'xsl' is an undeclared namespace. but if i change it to <stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ...
0
by: ronaldlee | last post by:
Hi, I got an error message - Operation is not allowed in this context. It said the error comes from the line objRS.Close() Anyone have any ideas why? Thanks a lot. Here is part of the code: ...
0
by: Wisely | last post by:
After from knowing nuts about XSL, i finally managed to do a simple XSL so that I can style my XML. Now my boss said that some feeds descriptions are too long and want me to truncate it. And after...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
0
by: dhaval0011 | last post by:
Hi, Does anyone know some code that will allow me to enable and/or disable a task which already exists in the task scheduer. This topic has already been discussed in this forum, and also Mr....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.