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 March 3rd, 2007, 05:11 AM
Authorized User
 
Join Date: Feb 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default replacing "

i want to replace " with \" ..

<xsl:variable name="varVal" select="normalize-space(.)"/>
                          <xsl:variable name="newVal" select="translate($varVal,'&quot;','\&quot;')"/>

but after replaching in output html it is comming blank means &quot; are place by blank..from xsl how can i get \&quot; in outout html??
 
Old March 4th, 2007, 10:44 AM
Friend of Wrox
 
Join Date: Jul 2006
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Try:
<xsl:variable name="varVal" select="normalize-space(.)"/>
<xsl:value of select="concat('/',$varVal )/>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing "?" and "&" with "/" in url centaury Classic ASP Professional 3 October 22nd, 2008 04:09 AM
preserving &quot; for later use in testing in xslt akentanaka XSLT 1 October 14th, 2008 03:59 AM
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
Replace Character &quot; fosca XSLT 1 November 11th, 2004 04:14 PM





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