This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Converting special characters


> <xsl:when test="contains($string, '"')">

An XML attribute can't contain both double and single quotes.
I generally try to avoid the complexities of XML escaping by using

<xsl:variable name="quot">"</xsl:variable>
<xsl:when test="contains($string, $quot)">

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]