Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2009, 11:22 PM
Friend of Wrox
 
Join Date: Feb 2009
Posts: 119
Thanks: 25
Thanked 3 Times in 3 Posts
Default replace &

Hello all

Code:

I have the following and I want to replace & with & using XSLT 1.0

<link>http://www.topendarts.com.au/index.php?option=com_events&amp;amp;task=view_detail&amp;amp;agid=864&amp;amp;Itemid=52</link>

At the moment when i use translate it is taking out the a's in the link
REgards
 
Old September 2nd, 2009, 01:16 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Thumbs up

If you use template like below
Code:
<xsl:template match="link">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:template>


yoiu could get the output

http://www.topendarts.com.au/index.php?option=com_events&amp; task=view_detail&amp; agid=864&amp;Itemid=52

Is this what you are looking for?
__________________
Rummy





Similar Threads
Thread Thread Starter Forum Replies Last Post
not sure how to replace & and &nbsp for xml eruditionist BOOK: Beginning Regular Expressions 0 April 13th, 2009 04:39 PM
Javascript && keeps turnig into &amp;&amp; ayrton Pro VB.NET 2002/2003 3 June 27th, 2005 03:34 PM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
XML from a DB recordset (removal of &lt;&gt;) Thodoris XML 3 July 13th, 2004 12:28 AM
sql & join tables & find a field in multiple table trangd Beginning PHP 2 January 29th, 2004 07:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.