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

Re: double quotes in attributes

Subject: Re: double quotes in attributes
From: Chuck White <chuckwh@xxxxxxxxxxx>
Date: Tue, 27 Aug 2002 14:11:10 -0700
double quotes in xml attribute
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

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.