[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: & in xml data

Subject: Re: & in xml data
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 05 Dec 2001 18:09:02 +0100
how to write in xml
Hi Jan,

& is always the starting of an entity - therefore the error message. To have a & you need to write &amp;

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@xxxxxxxxx
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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.