This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: & in xml data


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]