RE: How to transform an & ?

Subject: RE: How to transform an & ?
From: Tom Power <TomP@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Aug 2000 08:56:01 +1200
ensure you have <output mode="html"/> as first child of root <stylesheet>
node, otherwise, xsl makes a guess about the type of document you are
outputing, and usually guesses xml.

-----Original Message-----
From: Thorbjørn Ravn Andersen [mailto:TRA@xxxxxxxx]
Sent: Friday, 18 August 2000 12:56 a.m.
To: XSL-List (E-mail)
Subject: How to transform an &amp; ?


I have tried several means of changing an &amp; into &amp;amp; (in order to
have the webserver in the end output &amp; instead of &), but it appears
that both Xalan and Saxon ignores redefintions like 

	<!ENTITY amp '<![CDATA[&amp;amp;]]>'>

in the DTD (which is overkill, but that was just to get started).

What is the correct way to change this?
-- 
  Thorbjørn Ravn Andersen   "...and...Tubular Bells!"


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread