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

Ampersand for URLs

Subject: Ampersand for URLs
From: P.Vogt@xxxxxxxxxxxx
Date: Fri, 20 Apr 2001 10:36:12 +0200
img src ampersand
Hello!

  Perhaps someone on this list can help me with a little problem:

I want to transform an xsl to html which contains a url. This url has an 
ampersand, which seperate cgi-parameters. My problem is, that the xalan 
processor translates the & in & (which should be ok refering to the 
xslt-reference and the faq).

Example:

Xsl:
<img><xsl:attribute 
name="src">http://www.thehost.com/thescript?param=<xsl:value-of 
select="number"/><![CDATA[&]]>img=5</xsl:attribute></img>

results in

HTML:

<img src="http://www.thehost.com/thescript?param=15&amp;anotherparam=5">

But I need:

<img src="http://www.thehost.com/thescript?param=15&anotherparam=5">

Is there a workaround to get this url?

I use:

<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
  <xsl:output doctype-public="-//W3C/DTD HTML 4.0 Transitional//EN" 
doctype-system="http://www.w3c.org/TR/REC-html40/loose.dtd" method="html" 
version="1.0" indent="yes" encoding="ISO-8859-1" media-type="text/html"/>

in the XSL, if that is of any help.

  Philipp

--
Philipp Vogt
Web-Entwickler/Programmierer/Member of visionLab
mainwork information technology AG
Höchstädtplatz 3 / 202, 1200 Wien
E-Mail: p.vogt@xxxxxxxxxxxx
Tel: +43 1 796 70 60
Fax: +43 1 796 70 60 - 60
Mobil: +43 699 1 946 95 24

 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.