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

Using Relative filepaths for XSL-FO images with-in XSL

Subject: Using Relative filepaths for XSL-FO images with-in XSL
From: Arian Hojat <arianhojat2000@xxxxxxxxx>
Date: Thu, 23 Jun 2005 14:07:05 -0700 (PDT)
xsl fo image
Hello all,
I was messing with a template rule so when a document
points to another relatively, it applies templates to
make my XSL-FO document to it like so...

<xsl:apply-templates select="document(@href, .)"/>

But I need to pull an image into my Xsl-fo referred to
from that called xml file.


So x1.xml in '/' refer to x2.xml which refers to
x3.xml which is in '/child1/child2/' and x3.xml refers
to an image in its directory with an image tag like
so...
<image fileName="sample.jpg" />

But when I set an attribute for the image, it does not
take into account it is relative. How can I make the
url relative in this context? I dont have access to
document-uri() in xsl 1.0 to do something like this
document-uri(.)/../@fileName


<xsl:template match="image">
<fo:external-graphic>
<xsl:attribute name="src">url('<xsl:value-of
select="@fileName"/>')</xsl:attribute>
...

when transformed with FOP/Xalan I get:
[ERROR] Error while creating area : Error while
recovering Image Informations (file:///pyramadBig.jpg)

Any suggestions?,
Thanks in advance


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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.