Gav.... wrote:
-----Original Message-----
From: Tim Williams [mailto:[EMAIL PROTECTED]
Sent: Saturday, 20 January 2007 9:39 PM
To: dev@forrest.apache.org
Subject: Re: Match Patterns - .xmap and .locationmap.
<snip>
Questions. (from Gav)
1. - When a URL of /images/icon-a.png is called for as an example, it
will
Fall into this match. So where and how does forrest determine where
/images/
Location actually is. We have possibility of
a> in xdocs/images
b> in resources/images/
c> in anotherLocation/images/
The when tests check in project.images which is defaulted to
resources/images. If /images/icon-a.png is meant to be
xdocs/images/icon-a.png where is this matched ??
take a look at the locationmap.xml file and look for the pattern
"project.images.**.*" this is where they actually get resolved to a
physical location. I don't know the rest of your questions without
looking into it a bit to refresh myself and I haven't the time right
now.
--tim
Hi Tim, yep got that thanks.
<match pattern="project.images.**.*">
<select>
<location src="{properties:resources.images}{1}.{2}" />
<location src="{properties:content}../resources/images/{1}.{2}" />
<location src="{properties:content.xdocs}images/{1}.{2}" />
<location src="{properties:content.xdocs}{1}.{2}" />
</select>
</match>
The above is working fine for .html pages etc but does not work for pdf
images.
>
From what I can tell we need to implement this same feature for the
Document-to-fo.xsl :-
<!-- already absolute -->
<xsl:when test="contains(string(@src),':') or
starts-with(string(@src),'/')">
<xsl:value-of select="@src"/>
</xsl:when>
I feel that the 'value-of select' needs the relevant location (whichever one
of the 4 above) putting in before the @src using concat. This will then make
The src a full path location and fop will be happy.
No.
The output of document-to-fo.xsl should be an XSLT/FO document with
client focussed URLs. i.e. just what they are in the original XDoc. the
"project.images.**" path is an internal one for the locationmap.
Once this is done, the missing SVG images are I think a separate problem
But we'll see.
Any more pointers appreciated.
Can you please provide an example of an image that is not working, so
that I can trace this. better still, point at an example in SVN that
fails (add it to our example docs if necessary).
Ross