You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by m_dieu <an...@gmx.net> on 2007/10/24 13:43:23 UTC
concatenate fo:external-graphic
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&tmp="<xsl:apply-templates
select='whatever'/> width="18cm"></fo:external-graphic>
Is there any possibility to solve this problem?
--
View this message in context: http://www.nabble.com/concatenate-fo%3Aexternal-graphic-tf4683762.html#a13383955
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: concatenate fo:external-graphic
Posted by m_dieu <an...@gmx.net>.
Ok, I solve the problem by myself.
If someone has a similar problem just replace the "&" by "&am p;" ;-)
m_dieu wrote:
>
> 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:anmeldung.forum@gmx.net]
>>> 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: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/concatenate-fo%3Aexternal-graphic-tf4683762.html#a13384534
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: concatenate fo:external-graphic
Posted by m_dieu <an...@gmx.net>.
Ok, I solve the problem by myself.
If someone has a similar problem just replace the "&" by "&" ;-)
m_dieu wrote:
>
> 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:anmeldung.forum@gmx.net]
>>> 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: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/concatenate-fo%3Aexternal-graphic-tf4683762.html#a13384534
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: concatenate fo:external-graphic
Posted by m_dieu <an...@gmx.net>.
Ok, I solve the problem by myself.
If someone has a similar problem just replace the "&" by "& ;" ;-)
m_dieu wrote:
>
> 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:anmeldung.forum@gmx.net]
>>> 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: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/concatenate-fo%3Aexternal-graphic-tf4683762.html#a13384534
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: concatenate fo:external-graphic
Posted by m_dieu <an...@gmx.net>.
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:anmeldung.forum@gmx.net]
>> 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: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: concatenate fo:external-graphic
Posted by Lo...@log-net.com.
Did you try:
<xsl:variable name="imgURL">
<xsl:apply-templates select="concat("
http://localhost:7001/servlet/ChartViewer?chartTyp=pie&tmp=",whatever)" />
<!--not sure about this so double check syntax-->
</xsl:variable>
<fo:external-graphic scaling="uniform" height="12mm" src="{$imgURL}" />
m_dieu <an...@gmx.net>
10/24/2007 07:47 AM
Please respond to
fop-users@xmlgraphics.apache.org
To
fop-users@xmlgraphics.apache.org
cc
Subject
concatenate fo:external-graphic
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&tmp=
"<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?
--
View this message in context:
http://www.nabble.com/concatenate-fo%3Aexternal-graphic-tf4683762.html#a13383955
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org