[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: Peter Davis <pdavis152@xxxxxxxxx>
Date: Tue, 27 Aug 2002 13:59:04 -0700
xsl double quote
On Tuesday 27 August 2002 13:48, yan bai wrote:
> Hi, Gurus,
> I have some xml files which is produced by server.
[snip]
>          text="Alarm Status 00000100 stream-id="0
>           LowAlarm"" />
[snip]
> How should I handle the double quote problem here in
> xsl?

The only way to process a file like this is to fix the problem, by making the 
*server* convert the double quotes into &quot; sequences.  This is not valid 
XML, and XSLT can't process source files that aren't valid XML, so I'm afraid 
you are SOL unless the *server* is fixed.

You can maybe write a program in another language (Perl?) to fix the problem.  
But I will bet that double quotes aren't the only problem: it looks like the 
server doesn't do any escaping on its output, which means that '<' characters 
and any other character that isn't legal in your character set will need to 
be fixed as well.

-- 
Peter Davis

 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.