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]

getting a single quote into a parameter


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


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