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

replace a character in an element

Subject: replace a character in an element
From: Dariusz Borowski <d.borowski@xxxxxx>
Date: Tue, 19 Jul 2005 13:26:22 +0200
replace character in mysql
Hi!

I would like to replace a character in a string. Because it is a quote and
mySQL-Database doesn't accept it, but I don't know how.

Here is the string-element:
======================
<description-list>
<paragraph>
The term "project plan" is used throughout the generic and specific practices
in this process area to refer to the overall plan for controlling the
project.
</paragraph>
</description-list>
======================


At first I tried to find the element with the quotes as follows:
======================
<xsl:when test="contains(., '&quot;')">
<!-- <div class="red"><xsl:value-of select="." /></div><br/><br/>-->
</xsl:when>

<xsl:otherwise>
"<xsl:value-of select="." />");<br/><br/>
</xsl:otherwise>
======================

This works, but now I would like to get an output like this:
======================
The term \"project plan\" is used throughout the generic and specific
practices in this process area to refer to the overall plan for controlling
the project.
======================

I appreciate for any help!

Thanks,
Dariusz

_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail kvnnen Sie eine SMS an alle
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179

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.