This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: double quotes in attributes
- From: Chuck White <chuckwh at pacbell dot net>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 27 Aug 2002 14:11:10 -0700
- Subject: Re: [xsl] double quotes in attributes
- References: <20020827204800.6422.qmail@web10001.mail.yahoo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@tumeric.net
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