|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: translate quot to apos
> Is it possible, using the text output method, to translate > all double-quote characters in a string to single-quote characters? > > The following does not work > <xsl:value-of select="translate(Tag1, '"', ''')"/> By the time the XSLT processor sees this XPath expression the XML parser has converted it to translate(Tag1, '"', ''') so it's not surprising it has problems. Best way is to use variables: <xsl:variable name="quot">"</xsl:variable> <xsl:variable name="apos">'</xsl:variable> <xsl:value-of select="translate(Tag1, $quot, $apos)"/> Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








