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 Luke Shannon <ls...@futurebrand.com> on 2005/01/11 17:45:00 UTC

Image Output issues

Hello;

I am trying to dynamically create the path to my image file.

I'm getting the error:

org.apache.fop.apps.FOPException: The entity "acirc" was referenced, but not
declared.

I am not sure what acirc is?

Here is the code(this is not the full path, i am trying to incrementally
building while outputting the results):

The template that will return the path:

<xsl:template name="image_display_and_upload">
<xsl:param name="IP" select="string($IP)"/>
<xsl:param name="current" select="string(.)"/>
    <xsl:value-of select="concat($IP, $current)"/>
</xsl:template>

The template outputting the FO:

<fo:table-row>
<!-- image cell -->
<fo:table-cell number-columns-spanned="2">
<fo:block>
<xsl:variable name="filePath">
<xsl:call-template name="image_display_and_upload"/>
</xsl:variable>
<xsl:value-of select="$filePath"/>
<!--<fo:external-graphic
src="url(file://{$IP}{./@PATH}{./@FNAME}/{./DATA/VERSION/ITEM[@NAME=$imagena
me]/@DIR150DPI})"/>-->
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>

Any help would be greatly appreciated.

Thanks,

Luke


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Image Output issues

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Luke Shannon wrote:
> I'm getting the error:
> org.apache.fop.apps.FOPException: The entity "acirc" was referenced, but not
> declared.

You have an entity referene in one of the XML source files or the
style sheet. Look for
  &acirc;
anywhere. I doubt this has something to do with the image path,
it's more like either someone did a cut&paste from HTML source,
or the authoring environment is trying to be helpful the wrong
way.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Image Output issues

Posted by Luke Shannon <ls...@futurebrand.com>.
It is intentional. The variable in the url parameter are not visible from
the document I am running this in. I need to calculate the path to the image
in another lever and pass it back to this function. Once I can see that I
have the whole path outputting correctly I can uncomment my graphics tag,
drop in the variable containing the path and finally see this working the
way it should. I may throw a little party in my cube to celebrate.  :-)

Thanks for the explanation of arirc. What still confuses me is I am not
doing anything with the image file yet. So far I'm trying to concatenate the
IP and along with the name of the current node into a variable and than
write this into the document. Where is it getting the arirc I wonder?

Thanks,

Luke


----- Original Message ----- 
From: "The Web Maestro" <th...@gmail.com>
To: <fo...@xml.apache.org>
Sent: Tuesday, January 11, 2005 11:56 AM
Subject: Re: Image Output issues


> Luke,
>
> The acirc entity is an 'a' with a ^ above it[1]. I suspect the binary
> image file is being read as text, and it happens to be the first 'bad'
> character the XML parser is seeing.
>
> That said, I notice you've got the <fo:external-graphic..> element
> commented out. Is that intended?
>
> [1]
> <http://www.uspto.gov/web/offices/ac/ido/oeip/sgml/st32/redbook/pap-
> v15-2001-01-31/entities/acirc.html>
>
> On Jan 11, 2005, at 8:45 AM, Luke Shannon wrote:
>
> > Hello;
> >
> > I am trying to dynamically create the path to my image file.
> >
> > I'm getting the error:
> >
> > org.apache.fop.apps.FOPException: The entity "acirc" was referenced,
> > but not
> > declared.
> >
> > I am not sure what acirc is?
> >
> > Here is the code(this is not the full path, i am trying to
> > incrementally
> > building while outputting the results):
> >
> > The template that will return the path:
> >
> > <xsl:template name="image_display_and_upload">
> > <xsl:param name="IP" select="string($IP)"/>
> > <xsl:param name="current" select="string(.)"/>
> >     <xsl:value-of select="concat($IP, $current)"/>
> > </xsl:template>
> >
> > The template outputting the FO:
> >
> > <fo:table-row>
> > <!-- image cell -->
> > <fo:table-cell number-columns-spanned="2">
> > <fo:block>
> > <xsl:variable name="filePath">
> > <xsl:call-template name="image_display_and_upload"/>
> > </xsl:variable>
> > <xsl:value-of select="$filePath"/>
> > <!--<fo:external-graphic
> > src="url(file://{$IP}{./@PATH}{./@FNAME}/{./DATA/VERSION/
> > ITEM[@NAME=$imagena
> > me]/@DIR150DPI})"/>-->
> > </fo:block>
> > </fo:table-cell>
> > </fo:table-row>
> > <fo:table-row>
> >
> > Any help would be greatly appreciated.
> >
> > Thanks,
> >
> > Luke
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail: fop-user-help@xml.apache.org
> >
> >
>
> Web Maestro Clay
> -- 
> <th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
> My religion is simple. My religion is kindness.
> - HH The 14th Dalai Lama of Tibet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: Image Output issues

Posted by The Web Maestro <th...@gmail.com>.
Luke,

The acirc entity is an 'a' with a ^ above it[1]. I suspect the binary  
image file is being read as text, and it happens to be the first 'bad'  
character the XML parser is seeing.

That said, I notice you've got the <fo:external-graphic..> element  
commented out. Is that intended?

[1]
<http://www.uspto.gov/web/offices/ac/ido/oeip/sgml/st32/redbook/pap- 
v15-2001-01-31/entities/acirc.html>

On Jan 11, 2005, at 8:45 AM, Luke Shannon wrote:

> Hello;
>
> I am trying to dynamically create the path to my image file.
>
> I'm getting the error:
>
> org.apache.fop.apps.FOPException: The entity "acirc" was referenced,  
> but not
> declared.
>
> I am not sure what acirc is?
>
> Here is the code(this is not the full path, i am trying to  
> incrementally
> building while outputting the results):
>
> The template that will return the path:
>
> <xsl:template name="image_display_and_upload">
> <xsl:param name="IP" select="string($IP)"/>
> <xsl:param name="current" select="string(.)"/>
>     <xsl:value-of select="concat($IP, $current)"/>
> </xsl:template>
>
> The template outputting the FO:
>
> <fo:table-row>
> <!-- image cell -->
> <fo:table-cell number-columns-spanned="2">
> <fo:block>
> <xsl:variable name="filePath">
> <xsl:call-template name="image_display_and_upload"/>
> </xsl:variable>
> <xsl:value-of select="$filePath"/>
> <!--<fo:external-graphic
> src="url(file://{$IP}{./@PATH}{./@FNAME}/{./DATA/VERSION/ 
> ITEM[@NAME=$imagena
> me]/@DIR150DPI})"/>-->
> </fo:block>
> </fo:table-cell>
> </fo:table-row>
> <fo:table-row>
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Luke
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>

Web Maestro Clay
-- 
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org