This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: & in xml data
- From: Jörg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 05 Dec 2001 18:09:02 +0100
- Subject: Re: [xsl] & in xml data
- References: <4F213CE9D4A5D411B45D00508B6D701E0276D811@sv_nt_gos41>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Jan,
& is always the starting of an entity - therefore the error message. To have
a & you need to write &
It's definitely a frequently asked question and you will find it in every
archive ;-)
Joerg
Hesselberth, Jan wrote:
> I searched the archive but could not find an answer (and I read the book)
> I have the following xml:
>
> <Customer>
> <PersonName> </PersonName>
> <HouseNameNo>C/o Mr C E Smith</HouseNameNo>
> <Address1>Fred Bell & Reid</Address1>
> </Customer>
>
> and am converting it to xsl:fo using
> <xsl:output method="text" version="4.0" omit-xml-declaration="yes"
> indent="yes"/>
> .
> .
> .
> <fo:table-row>
> <xsl:for-each select="./Customer">
> <fo:table-cell>
> <fo:block font-size="10pt" text-align="start"><xsl:value-of
> select="Address1" disable-output-escaping="yes"/></fo:block>
> </fo:table-cell>
> </xsl:for-each>
> </fo:table-row>
>
> However, when I try to process it with FOP I get the error:
> [INFO]: building formatting object tree
> file:/c:/clasinc5/clasreport.xml; Line 1; Column 716; [ERROR]: The entity
> name must immediately follow the '&' in the entity reference.
>
> How do I get round this problem? Thanks for any help.
--
System Development
VIRBUS AG
Fon +49(0)341-979-7411
Fax +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de
News:
Cocoon-Premiere - Virbus AG setzt bei ShoppingMall-Plattform "Lofex"
auf neueste XML-basierende Technologie
http://www.virbus.de/de/press/pressemitteilung/20011123_lofex/index.html
http://www.lofex.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list