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

Re: CDATA block to node set.

Subject: Re: CDATA block to node set.
From: Morten Primdahl <morten@xxxxxxx>
Date: Fri, 10 May 2002 00:51:07 +0200
morten primdahl
Michael Kay wrote:
I know that my question may seem that of a delusional madman.
But I'm well aware of what CDATA is, I had just hoped to access it
the same way one can access data from a URL:



Well, you can. The CDATA contains a string. If this string is well-formed XML, you can turn it into a tree by parsing it. Saxon 7.1 allows you to do this using saxon:parse(). But it still begs the question: the purpose of CDATA is to say "the stuff in here isn't markup", so if it is markup, why are you putting it in CDATA?

Because I would like to parse my language for validity. Part of the language definition allows arbitrary well-formed XML as data input - so I guess my validity parse can only be "partial". If I use a DTD, I need to escape the arbitrary XML (hence the CDATA). I'm looking into the "lax" option of XML Schemas in an attempt to avoid this.

Thanks for the pointer on saxon:parse() :)

Morten





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.