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

getting a single quote into a parameter

Subject: getting a single quote into a parameter
From: Saverio Perugini <sperugin@xxxxxxxxxxxxxxxx>
Date: Fri, 22 Feb 2002 16:56:36 -0500 (EST)
parameter with single quote
Hello,

I am trying to get a single quote character (e.g., ') into an <xsl:param>
and the value is being passed in via the command line.  I am outputting HTML.

I am using Xalan.

$ testXSLT -in in.xml -xsl ss.xsl -out out.html -param tempParam "'hello &#39; world &#39; '"

The entire parameter value needs to be single quoted for Xalan.

The following is in ss.xsl.

<xsl:param name="tempParam"></xsl:param>

<h3><xsl:value-of select="$tempParam"/></h3>

In the HTML, I want the following

<h3>hello 'world'</h3> or the string "hello 'world'" displayed in the browser

Ideas, comments, solutions?

Thank You and Best Regards,

Saverio Perugini


 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.