xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay Bryant" <...@bryantcs.com>
Subject Re: Problem when link has "contentid"
Date Thu, 21 Jul 2005 21:51:11 GMT
Hi, Fabrizio,

Try <xsl:value-of select="."/> rather than text(). The two are very similar
in most cases, but . tends to be more reliable because it picks up the text
value of the entire node. Also, it's more standard XSLT.

Jay Bryant
Bryant Communication Services

----- Original Message ----- 
From: "Fabrizio Caldas" <fncaldas@hotmail.com>
To: <fop-users@xmlgraphics.apache.org>
Sent: Thursday, July 21, 2005 4:28 PM
Subject: Problem when link has "contentid"


> Hello,
>
> I have an XSLT and an XML file, which I use to generate a PDF.
>
> Both those files work fine except for one circumstance.
>
> This is an example of how I have data in the XML.
> <Item>
>   <text>Some text here </text>
>   <a href="http://www.example.com/fop/test.jsp?contentID=1234">please
click
> here</a>
>   <text> more text here.</text>
> </Item>
>
> And this is the data in the XSL:
> <!-- =============================== -->
> <!-- child element: a                -->
> <!-- =============================== -->
> <xsl:template match="a">
>   <fo:basic-link color="blue" external-destination="{@href}">
>     <fo:inline><xsl:value-of select="text()"/></fo:inline>
>   </fo:basic-link>
> </xsl:template>
>
> When the link contains "contentID" the PDF creation generates an error:
> [ERROR] The reference to entity "contentID" must end with the ';'
delimiter.
> org.apache.fop.apps.FOPException: The reference to entity "contentID" must
> end with the ';'
>
> Does anyone know how I can make the "contentID" be interpreted as ordinary
> text and not as a reference to entity?
>
> Thanks in advance,
>
> Fabrizio.
>
> _________________________________________________________________
> Chegou o que faltava: MSN Acesso Grátis. Instale Já!
> http://www.msn.com.br/discador
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>



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


Mime
View raw message