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

replace

Subject: replace
From: "Charles Ohana" <charles.ohana@xxxxxxxxxxxxxx>
Date: Mon, 11 Jun 2007 22:28:03 -0400
 replace
Hello,
I'm sorry, I know this question has been asked several times but ... After searching everywhere I could not get the replace function working.
See my code below you'll see what I'm trying to accomplish. All I need is a simple working example that is replacing a pattern withing a value.
Any hint would be appreciated. I'm using SAXON 6.5.5 (java -jar saxon.jar)


Thank you

<?xml version="1.0" encoding="utf-8"?>
<stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"
           xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
           xmlns:str="http://exslt.org/Strings" version="1.0"
           extension-element-prefixes="str">

<import href="functions/replace/str.replace.xsl"/>
<xsl:template match="/">
<xsl:call-template name="str:replace">
  <xsl:with-param name="string" select="/root/@description" />
  <xsl:with-param name="search" select="a" />
  <xsl:with-param name="replace" select="b" />
</xsl:call-template>
</xsl:template>

</xsl:stylesheet>

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.