Hi all,

Thanks a lot for the example, it will be very useful for me !

I tried to the same thing with <xsl:include
href="{concat($filepathValue,'anXSLFile.xsl')}"/>
but I get an " org.apache.xml.utils.URI$MalformedURIException: Path contains
invalid character: { ".

Whithout the {}, the concat function is not interpreted ...

Does anyone know if there is a way to do this ?

Thanks in advance,
Romain.

----- Original Message -----
From: "Mark Reeves" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 07, 2002 4:19 PM
Subject: RE: AW: FOP-XSL:dynamic external graphics


> Try using <xsl:param>
>
> e.g.
>
> <xsl:stylesheet
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
>
> <xsl:output ...>
>
> <xsl:param name="filepathValue"/ >
> ...
>
>  <fo:external-graphic src="{concat($filepathValue,'anImage.gif')}" />
>
> Then in your code to do the transform, use ( for TRAX)
>
> transformer.setParameter("filepathValue", <the path read from properties
> file>) ;
> transformer.transform(<src>,<dest>);
>
> Mark
>
>
> Mark Reeves
> Senior Software Engineer
> CSU Ltd
> 0161 277 5240
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to