RE: [xsl] How to include a single quote in a parameter string

Subject: RE: [xsl] How to include a single quote in a parameter string
From: "Joseph Kesselman" <keshlam@xxxxxxxxxx>
Date: Tue, 30 Jul 2002 11:55:12 -0400
I've got rid of the error by using:
<xsl:param name="fjeestitle"
select='"NRC Research Press: Revue du ginie et de la science de
l&#x0027;environnement"' />

The original one is:
<xsl:param name="fjeestitle"
select="'NRC Research Press: Revue du ginie et de la science de
l&#x0027;environnement'" />


&#x27; gets expanded into the ' character by the XML parser, long before 
XSLT sees your stylesheet, so the original has a ' within an XPath literal 
string quoted with ' characters (which is a problem) within an attribute 
quoted with " characters. The new version has a ' character within an 
XPath literal string quoted with " (which is fine) within an attribute 
quoted with ' characters.

______________________________________
Joe Kesselman  / IBM Research

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


Current Thread