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

new to XSl/variable usage

Subject: new to XSl/variable usage
From: Rajesh.Jayabalan@xxxxxxxxxx
Date: Fri, 17 May 2002 17:38:38 -0400
xsl variable usage
Hi,

 I am stumped at trying to trying to remove a character(') and replace it with "
--quot" from a given string and print it. I want to make it so that the change
is for the whole string.

 I am dong the following

<xsl:for-each select="contains($objName,'&quot;')">


      <xsl:variable name = "beginStr" select = "substring-before($objName,'
&quot;')"/>
      <xsl:variable name = "repStr" select = "--quot--"></xsl:variable>
      <xsl:variable name = "endStr" select = "substring-after($objName,'
&quot;')"/>
      <xsl:variable name = "finStr" select = "concat
($beginStr,$repStr,$endStr)"/>

    </xsl:for-each>

here when I try to access finStr ouside I get error, so if I declare the
variable ouside the for loop I get the error defined twice.  kindly help me

Regards
Rajesh J



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.