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

& output in xsl as &

Subject: & output in xsl as &
From: Trem Stamp <trem@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 20 Apr 2000 09:57:10 +1000
xsl output amp
All,

I've got a problem converting &amp; to &.

The xml I'm parsing contains strings which are urls containing &amp;
The urls will not work correctly unless the &amp; is in the syntax of
&.  I realise that <xsl:output method="text"/> will convert the &amp; to
&.

However the output I require is in html format.

For example the string in the xml is in the form of:

http://linuxdev.socialchange.net.au/cgi-bin/usl/usl.pl?object=ds&amp;ds.method=getimage



The url is given to a parameter in the xsl to hold it. ie.

  <xsl:variable name="param.url">
       <xsl:value-of select="param[@name='url']/@value"/>
    </xsl:variable>

................

This  url parameter is then used in a form containing an applet which
uses this url.

    <param>
       <xsl:attribute
name="NAME"><xsl:text>image</xsl:text></xsl:attribute>
       <xsl:attribute name="VALUE"><xsl:value-of
select="$param.url"/></xsl:attribute>
    </param>

At this point the url still contains &amp; when output as html.....I
want it to be in & format.  If I change the xsl:output to text, then I
have problems creating the forms and attributes.

Does anyone know of a solution?

Cheers,

Trem

--
Trem Stamp

trem@xxxxxxxxxxxxxxxx
Application Developer
Social Change Online Pty Ltd                Ph  +61 (2)9557 6500
http://online.socialchange.net              Fax +61 (2)9519 8940



 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.