Re: [xsl] double quotes in attributes

Subject: Re: [xsl] double quotes in attributes
From: Chuck White <chuckwh@xxxxxxxxxxx>
Date: Tue, 27 Aug 2002 14:11:10 -0700
Are you really getting this as an XML file?

>    <info seq="21"
>          bind="S000003"
>          text="Alarm Status 00000100 stream-id="0
>           LowAlarm"" />

Or is there a typo here? Assuming this is a typo, double quotes are not a
problem in XML attribute values, and when you need to nest quotes, you can
switch between single and double quotes to contain a quoted value:

test = "'string'"

Cheers,

Charles White
The Tumeric Partnership
http://www.tumeric.net
chuck@xxxxxxxxxxx
http://www.javertising.com
________________________________________
Author, Mastering XSLT, Sybex Books
Co-Author, Mastering XML, Premium Edition, Sybex Books




>
> How should I handle the double quote problem here in
> xsl?
>
> Any suggestion?  Thanks.
>
> Yan
>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread