[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: RE: How to include a single quote in a parameter string
From: "Joseph Kesselman" <keshlam@xxxxxxxxxx>
Date: Tue, 30 Jul 2002 11:55:12 -0400
include quote literal within xml
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.