[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL to PDF - Overlayed graphics/text

Subject: XSL to PDF - Overlayed graphics/text
From: "Manuel Reyes" <Manuel.Reyes@xxxxxxxxx>
Date: Fri, 21 Nov 2003 18:03:59 -0000
xsl to pdf
Hello list

I am currently working on an application that uses XML data and XSL
templates to generate PDF files (via Apache FOP).  There are two
problems that I am currently looking for a solution to.

The first of these is that I want to be able to use over-layed text /
graphics within the PDF.  For example, lets say I create multi-page PDF
customer order confirmations, once the customer confirms they have
received the goods, I want to overlay the words "Fulfilled" diagonally
across the entire document.

Considering that XSL does not have it roots in PDF generation, I am
thinking that this isn't possible - but before I go down another route
it seemed like a good idea to look into it further.

The second problem is probably more rooted in lack of experience than
anything else :

I have the following attribute-set within my document which reads in
values from an XML file :

<xsl:attribute-set name="title_table_block">
<xsl:attribute name="font-size"><xsl:value-of
select="report_generics/report_title_font_size"/></xsl:attribute>
<xsl:attribute name="font-weight"><xsl:value-of
select="report_generics/report_title_font_weight"/></xsl:attribute>
<xsl:attribute name="text-align"><xsl:value-of
select="report_generics/report_title_text_align"/></xsl:attribute>
</xsl:attribute-set>

Below this I use the following block to define the text within a table
cell :

<fo:block xsl:use-attribute-sets="title_table_block">
<xsl:value-of select="report_generics/report_title"/>
</fo:block>

Now from what I understand from these URLs the syntax above is correct :
http://www.devguru.com/Technologies/xslt/quickref/xslt_element_attribute
set.html
http://www.w3schools.com/xsl/el_attributeset.asp

The problem is that when I set the text properties it overrides the font
size/weight/align settings defined in other parts of the document, so
when I create the PDF all parts of the document use these settings (at
the moment this is the only attribute set and this block is the only
block that calls it.)





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.