Subject: [xsl] new to XSl/variable usage From: Rajesh.Jayabalan@xxxxxxxxxx Date: Fri, 17 May 2002 17:38:38 -0400 |
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,'"')"> <xsl:variable name = "beginStr" select = "substring-before($objName,' "')"/> <xsl:variable name = "repStr" select = "--quot--"></xsl:variable> <xsl:variable name = "endStr" select = "substring-after($objName,' "')"/> <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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Mozilla 1.0 rc2 Problems, Brinkman, Theodore | Thread | RE: [xsl] new to XSl/variable usage, Stuart Celarier |
Re: [xsl] Document() and &, Thomas B. Passin | Date | Re: [xsl] Document() and &, Charles Knell |
Month |