First of all thanks for the quick response.

I've tried your advices but I can't solve the problem.
Maybe my ErrorStack helps you/me.

Here my "new" fop-code:
        <xsl:variable name="fileName">
                <xsl:apply-templates select="whatever"/>
        </xsl:variable>
        
        <fo:block text-align="center">
                 <fo:external-graphic
src="http://localhost:7001/servlet/ChartViewer?chartTyp=pie&tmp={$fileName}";
width="18cm"></fo:external-graphic>
        </fo:block>

And here the Error:
Es ist ein schwerer Fehler in der Generierung des Depotreports aufgetreten:
javax.xml.transform.TransformerConfigurationException:
 javax.xml.transform.TransformerException: org.xml.sax.SAXParseException:
The reference to entity "tmp" must end with the ';' delimiter.
javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerConfigurationException: javax.xml.transform.
TransformerException: org.xml.sax.SAXParseException: The reference to entity
"tmp" must end with the ';' delimiter.
        at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:805)

Last but not least the servlet:
public class ChartDepotReportServlet extends HttpServlet {

        public void doGet( HttpServletRequest request, HttpServletResponse 
response
) throws ServletException, IOException {

                String parameter = request.getParameter("tmp");
               (...)

Thanks in advance


Pascal Sancho wrote:
> 
> hi,
> 
> This is a XSLT related question.
> you should ask to the right list:
> http://www.mulberrytech.com/xsl/xsl-list
> 
> Anyway, in XSLT 1.0, you have 2 options to solve your problem:
> 
>  - either use a xsl:variable
> <xsl:variable name="fileName">
>   <xsl:apply-templates select="whatever"/>
> </xsl:variable>
> ...
> <fo:external-graphic width="18cm"
>  
> src="http://localhost:7001/servlet/ChartViewer?chartTyp=pie&tmp={$fileName}"/>
> 
>  - or directly (if xsl:value-of can be used in place of
> xsl:apply-templates):
> <fo:external-graphic width="18cm"
>  
> src="http://localhost:7001/servlet/ChartViewer?chartTyp=pie&tmp={whatever}"/>
> 
> Pascal
> 
>> -----Message d'origine-----
>> De : m_dieu [mailto:[EMAIL PROTECTED] 
>> Envoyé : mercredi 24 octobre 2007 13:47
>> 
>> Hi everybody,
>> 
>> I have to concatenate a "src" but I don't have an idea.
>> My problem looks like this:
>> 
>> <fo:external-graphic
>> src="http://localhost:7001/servlet/ChartViewer?chartTyp=pie&tm
>> p="<xsl:apply-templates
>> select='whatever'/> width="18cm"></fo:external-graphic>
>> 
>> I've also tried it with:
>> "...&tmp=+<xsl:apply-templates select='whatever'/>"
>> 
>> or
>> "...&tmp="+<xsl:apply-templates select='whatever'/>
>> 
>> Nothing works yet :-(
>> Is there any possibility to solve this problem?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/concatenate-fo%3Aexternal-graphic-tf4683762.html#a13384516
Sent from the FOP - Users mailing list archive at Nabble.com.


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

Reply via email to