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

Re: Removing namespaces without escaping CDATA???

Subject: Re: Removing namespaces without escaping CDATA???
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Mon, 9 Apr 2007 23:57:53 +0530
Re:  Removing namespaces without escaping CDATA???
On 4/9/07, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
No ... remember that the emitted result tree cannot be addressed in
any fashion and the distinction between the different contexts of "y"
in the result tree is, effectively, trying to address the result tree
to know "where am I now in the result tree?" in order to selectively
apply the serialization rule.

Note in XSLT 2.0 Section 20 and XSLT 1.0 Section 16 that the data
type of the cdata-section-elements is just a white-space-separated
list of QNames ... there is no opportunity to specify context for each one.

When I said, I want CDATA section to appear at location /x/p/q/y, my intention was to specify the location (using a syntax which is familiar). You rightly said, result tree cannot be addressed. I am aware of this fact.

For somebody, CDATA section could be useful at location /x/p/q/y, and
not at location /x/y. But this cannot be achieved, with current syntax
<xsl:output cdata-section-elements="qnames" />.

I suggested an improvement to the xsl:element instruction, with
<xsl:element name="qname" cdata-section="yes | no" .. As Mike said,
this is architecturally bad from XSLT processor design point of view
(but is it that bad?). But it seems to be an useful feature from end
user's point of view.

--
Regards,
Mukul Gandhi

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-2011 All Rights Reserved.