[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to include ' in the argument of <translate> f
The least confusing way to do this is to use variables: <xsl:variable name="apos">'</xsl:variable> then <xsl:value-of select="translate($in, $apos, '')"/> Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay > -----Original Message----- > From: Mak, Lucas Wing Kau [mailto:makw@xxxxxxxxxxxxxxxx] > Sent: 20 November 2009 21:46 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: How to include ' in the argument of > <translate> function > > I am trying to replace the apostrophe (') with a space by the > <translate> function but oXygen gave me an error message > ("unmatched quote in expression") when I put ' in the > second argument. How can I resolve that? > > Thanks, > > Lucas
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|