473,385 Members | 1,693 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.

Three question which is not yet answered clearly and correct so far !! challenging question in xsl and also in xsl fo

1) setting image as Background with alignment in center not
working..help

Explanation :

i need to set a image as background and also it should be
dispalyed in the center.i am using apache fop 0.25
Problem :
i am using apache fop 0.25 and i used the below to set a gif as
background and alignment to be center...
<fo:block background-image="c:\sample.gif" background-repeat="no-
repeat" text-align="center" display-align="center">
i tried with all the possiblities of setting image as background in
the center...
please tell me solution how to make or set image as background and
also to be displayed in the center at the back of the data.

2) Xsl fo-White Space Problem - At end Why ????
Explanation of the content :
a) My xml will be like
<Mobile>
<connection><south><region> data </region></south></connection>
..........like this it has many connection child with same tags
<connection><north><region> data </region></north></connection>
..........like this it has many connection child with these tags
</mobile>
b) first i retrieve some of the second tags i.e some of the childs of
mobile relating to the tags
<connection><north><region> data</region></north></connection>
.....some
c) second i will retrieve all the tags of first tags i.e all the
childs of mobile relating to the tags
<connection><south><region>data</region></south></connection
....all
d) third i will retrieve the all the tags which were left in the
first tags..i.e remaining tags of
<connection><north><region> data </region></north></connection>

Explanation of the problem :
1) i don't have problem till the third step.i have problem when i
come to the fourth step.
2) I checked with the xml data.the data is correct but the alignment
is not coming properly from the
fourth step.
3) It gives more space then actually specified for all the fourth
tags.
4) i have used CDATA in the xml so my output is correct throughout
the third step..i don't know from fourth
5) it gives more space for all the fourth tags after the third tags.
Example:

Expected Output
WEB DESIGN ENVIRONMENT
Ouput Coming WEB DESIGN ENVIRONMENT
my xsl is :
<fo:table-body>
<xsl:for-each select= 'MOBILE/CONNECTION/SOUTH//REGION'>
<fo:table-row text-align="left" font-family="Courier New, Courier"
font-size="8pt" line-height="15pt">
<fo:table-cell number-columns-spanned="7">
<xsl:choose>
<xsl:when test="position()!=last()">
<fo:block text-align="left" white-space-collapse="false"><xsl:value-
of select="."/></fo:block>
</xsl:when>
<xsl:otherwise>
<fo:block space-after.optimum="2pt" text-align="left" white-space-
collapse="false"><xsl:value-of select="."/></fo:block>
</xsl:otherwise>
</xsl:choose>
</fo:table-cell>
</fo:table-row>
</xsl:for-each>
</fo:table-body>
</fo:table>
<xsl:for-each select= 'MOBILE/CONNECTION/SOUTH//REGION'>
<xsl:if test="position()=last()">
<xsl:for-each select="../../following::*[NORTH]">
<fo:block text-align="left" font-family="Courier New, Courier" font-
size="8pt" white-space-collapse="false" font-weight="bold"><xsl:value-
of select="."/></fo:block>
</xsl:for-each>
</xsl:if>
</xsl:for-each>

i think that the problem with the xsl query ...as when we do
xsl:for-each it will defaultely creates a white space at the end...so
is there is any way to check the position of the
'MOBILE/CONNECTION/SOUTH//REGION' without using the xsl:for-each...

3) i was trying to use the arial font in xsl fo ..i am using apache
fop
0.25 when i use font-family="Arial" an error is coming
[ERROR] unknown font Arial,normal,bold so defaulted font to any
when i use font-family="Arial Unicode MS, sans-serif"
it is working...i also have all fonts installed in my system..
what are the fonts it will support..please tell me the name of the
font correctly that has to be applied in font-family=" "...i need to
use Arial font..please tell me the solution to this
i want to use "Arial" font please help me....

please send me the solution to my mail id ph**************@yahoo.co.in
....as soon as possible..

Thanks in Advance

Philip
Jul 20 '05 #1
0 2132

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

Similar topics

2
by: Emilio | last post by:
Hello everyone. I hope someone can help me with this. I have 3 columns called EMPLOYEE_TEST, TEST_QA and EMPLOYEE_TEST_ANSWER. The TEST_QA table contains the following: TEST_QA_ID |...
2
by: GoofyIdiot | last post by:
Hi, I've been reading about three layered serivces applications (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ArcThreeLayeredSvcsApp.asp) Now wonder how...
5
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ - Why was my post not answered? ----------------------------------------------------------------------- This could be...
3
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Why was my post not answered? ----------------------------------------------------------------------- This...
8
by: Charles Law | last post by:
This is a sort of pattern question, but relating to how components are coupled in a three-tier system. I have a presentation layer, business layer and data access layer, the first is the EXE,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.