Subject: RE: Replacing double quotes with XSLT
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Mon, 22 Sep 2003 18:22:11 -0400
|
[James Paul]
>
> Even when trying to replace with the " with a single character it does
> not work.
>
> Example
>
> <xsl:element name = "OrganizationCode">
> <xsl:text>"</xsl:text>
> <xsl:value-of select =
> "translate(../@OrganizationCode,'\"','B'"/>
> <xsl:text>"</xsl:text>
> </xsl:element>
>
translate() works as advertised, provided you write the syntax
correctly. Try
<xsl:value-of select="translate(../@OrganizationCode,'\','B')"/>
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|