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

Outputing an '&' from XSL

Subject: Outputing an '&' from XSL
From: Eoin Flood <eoin.flood@xxxxxxxxxxxx>
Date: Tue, 20 Jun 2000 18:39:35 +0100
eoin flood
I am sure that this is probably a FAQ, but I cant find any information on it

I need to output HTML which contains the following fragment

<OBJECT classid="..">
 <PARAM NAME="movie" value="webcard.swf?param1=Ducks&param2=Unlimited"/>
</OBJECT>

but whatever I do I always get a '&amp;' in the output stream

I have tried

<?xml version="1.0"?>
<xsl:stylesheet
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 version="1.0">
<xsl:output method="html" indent="yes"/>

<xsl:template match="/">
     <snip>
    <OBJECT classid="...">
     <PARAM NAME="movie" value="webcard.swf?param1=Ducks&amp;param2=Unlimited"/>
    </OBJECT>
    </snip>
</xsl:template>

</xsl:template>

or more complicated

<xsl:template match="/">
     <snip>
    <OBJECT classid="...">

     <PARAM>
     <xsl:attribute NAME="movie">
        <xsl:text>webcard.swf?param1=Ducks</xsl:text>
        <xsl:text disable-output-escaping="yes">&amp;</xsl:text>
        <xsl:text>nickname=Ducks+Unlimited"/>
    </OBJECT>
    </snip>
</xsl:template>

I have also tried calling the setSpecialCharacters() method in the XMLParserLiaison but it does not help
no matter what I do the output HTML always contains '&amp;' instead of just '&'

I am using Xerces 1.0.3
and Xalan 1.0.1

Any help would be most gratefully appreciated

Thanks

Eoin Flood


 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.