Subject: [xsl] 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) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Complex transform + addin, Mathieu Sagot | Thread | [xsl] Identify last node in nested , Mat Bergman |
RE: [xsl] Complex transform + addin, Mathieu Sagot | Date | [xsl] Identify last node in nested , Mat Bergman |
Month |