Subject: RE: [xsl] testing an apostrophe From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Tue, 12 Nov 2002 14:59:36 -0000 |
<xsl:variable name="apos">'</xsl:variable> <xsl:when test="contains($sString, $apos)"> Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Stevenson Ngila > Sent: 12 November 2002 13:31 > To: Xsl-List@Lists. Mulberrytech. Com > Subject: [xsl] testing an apostrophe > > > i want to use a recursive template to repalce an apostrophe > with "\'". how can i test that the string contains an > apostrophe ? am using: > > ><><><><><><><><><><><><><><><><><><><><><><><><><><> > <xsl:when test="contains($sString, ''')"> > ><><><><><><><><><><><><><><><><><><><><><><><><><><> > > but gives me an error! > > Thanks, > Stevenson Ngila > Footman-Walker Associates Ltd > http://www.footman-walker.co.uk > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] testing an apostrophe, Stevenson Ngila | Thread | RE: [xsl] testing an apostrophe, Jarno . Elovirta |
RE: [xsl] fairly simple position() , Michael Kay | Date | RE: [xsl] Using Regular Expressions, Langston, Doug |
Month |