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 22nd, 2010, 01:40 AM
Authorized User
 
Join Date: Feb 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is there any function in XSLT to handle double quotes

I have an xml which displays double quotes. I want to use XSLT to convert double quotes with ".

I am using XSLT 1.0. Is there any function in XSLT in which i can replace double quotes with ".
 
Old September 22nd, 2010, 06:03 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The decision whether to display " as " or as &_quot_; is made by the serializer, not by the transformation engine, and the specifications don't give you a direct way to control this. You shouldn't need to, because anyone who processes XML documents correctly should be able to handle both forms. But if, for example, you need to send the XML to someone who isn't handling XML correctly, then you might be able to achieve the desired effect using

<xsl:text disable-output-escaping="yes">&amp;quot;</xsl:text>

Be aware that this might not work on all processors.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
double quotes MyronCope Classic ASP Basics 2 November 21st, 2006 09:31 AM
displaying single quotes and double quotes ren_123 Classic ASP Databases 2 February 22nd, 2006 02:17 PM
Double Quotes langer123 Classic ASP Basics 2 March 16th, 2005 06:22 PM
parsing with double quotes compcad Beginning VB 6 0 June 30th, 2004 12:48 AM
Double Quotes and Single Quotes Problem phungleon Classic ASP Basics 7 May 27th, 2004 01:44 PM





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