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

Re: manipulating string

Subject: Re: manipulating string
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 16 Sep 2005 23:04:31 +0100
parsing string with coma
> I have an XML which looks like this:

If you have any control over your input it would be better to not start
from there, and not have the CDATA section.

> Notice that description is CDATA and has some html
> tags.

The problem is that there are no html tags: the only function of a CDATA
section is to specify explicitly that the content is just to be taken as
character data and are _not_ to be parsed as tags. So it is slightly
peverse to mark it up as a CDATA section, and then to want to process
the content as element markup.

Basically you need to parse the content. Having stopped the XML parser
that parsed the input from parsing this section, you need to pass this
section to a different XML parser. In simple cases it's possible to
write parse the content "by hand" in xslt but practically speaking you
need to use your processor's extension mechanism to call out to an XML
parser. How or if that is possible depends on the processor you are using.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.