xsl-list
[Top] [All Lists]

RE: Replacing double quotes with XSLT

2003-09-22 15:22:11
[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



<Prev in Thread] Current Thread [Next in Thread>