This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to include a single quote in a parameter string
- From: "Joseph Kesselman" <keshlam at us dot ibm dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 30 Jul 2002 11:55:12 -0400
- Subject: RE: [xsl] How to include a single quote in a parameter string
- Reply-to: xsl-list at lists dot mulberrytech dot com
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'environnement"' />
The original one is:
<xsl:param name="fjeestitle"
select="'NRC Research Press: Revue du ginie et de la science de
l'environnement'" />
' 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