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 use caracter " in a String


[Tuan-Dung Cao]

> I want to set the value of a parameter to a String which contain ".
>
> How can i do ? for example in this case
>
> <xsl:value select = "'I want to say "Hello"'" />
>

<xsl:value select='I want to say "Hello"'/>

or

<xsl:value-of select="I want to say &quot;Hello&quot;"/>

or, if you want the entire string to be quoted within single quotes (I have
put in a few extra spaces so the single and double quotes can be
distinguished),

<xsl:value-of select " 'I want to say &quot;Hello&quot;' "/>

Cheers,

Tom P


 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]