Right Align table Template in other table cell


I have a xsl template, a table.
Then I have another Table, where I call the template in a cell.

BUT, Is it not possible to align the template in the cell.
Like Right align horizontal...

Who is Participating?
Geert BormansInformation ArchitectCommented:
Well, you can right align content in a table cell in FO, without a problem
here is what you have in your stylesheet on line 217
<?xml:namespace prefix = fo />
<fo:block position="relative" text-align="center" color="#000000" font-family="Helvetica" font-size="6.0pt" font-weight="bold" white-space-collapse="false" linefeed-treatment="preserve" white-space-treatment="ignore-if-surrounding-linefeed" hyphenate="true" language="en" display-align="center"><xsl:value-of disable-output-escaping="no" select="$pivotCellValue"/>

in order to make that right-align, do this
<?xml:namespace prefix = xsl />
<fo:block position="relative" text-align="right" color="#000000" font-family="Helvetica" font-size="6.0pt" font-weight="bold" white-space-collapse="false"  linefeed-treatment="preserve" white-space-treatment="ignore-if-surrounding-linefeed"  hyphenate="true" language="en"  display-align="center"><xsl:value-of disable-output-escaping="no" select="$pivotCellValue"/>

Geert BormansInformation ArchitectCommented:
not enough context.
Is this XSL-FO, can you show some code?
conceptdataAuthor Commented:
<xsl:call-template name="Template1">

The Template is a table ..

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Geert BormansInformation ArchitectCommented:
Serious please, read the question, do you really think there is enough context to answer this?

"The template is a table" is something that does not make sense

Please give more detail on
- the source XML
- the XSLT
- what exactly you are trying to achieve

In other words, if you want an answer to your question, make sure there is a question
conceptdataAuthor Commented:
I'm using the program XSLfast.

I have attached a export from my xslfast project, and the xml file...

Geert BormansInformation ArchitectCommented:
in order to be selective on where you want the columns to be right-aligned, you need to change the XSLT for that
I don't have a high opinion of XSLfast, specially not the XSLT it generates, it is highly unflexible
The best option I believe is changing the XSLT after xslfast designed it, but even then, I am not very sure about the quality.
It might be that for you purposes, you draw some ideas from an initial FO setup through fastxsl,
but develop teh XSLT for the real work afterwards by hand

Well, your original question was
> BUT, Is it not possible to align the template in the cell.
> Like Right align horizontal...

Answer, yes you can, by changing the XSLT, as I showed in my previous comment
conceptdataAuthor Commented:
It solved the problem partical.
I was abble to put it in my xslfast template ..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.