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]
Other format: [Raw text]

RE: How to include a single quote in a parameter string


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


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