[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: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 09 Apr 2007 19:07:24 +0100
Re:  Removing namespaces without escaping CDATA???
>>>>> "Mukul" == Mukul Gandhi <gandhi.mukul@xxxxxxxxx> writes:

    Mukul> I shall try to explain my point of view..  Let's say we
    Mukul> have following XML: <x> <y></y> <p> <y></y> <q> <y></y>
    Mukul> </q> </p> </x> (text content can be placed anywhere as
    Mukul> desired)

    Mukul> If I do, <xsl:output cdata-section-elements="y" />, then
    Mukul> all y elements will contain CDATA sections. This may be
    Mukul> desirable in very specific cases. But it will be more
    Mukul> convenient, if I am able to put CDATA section at this
    Mukul> location /x/p/q/y, and not to any other y's.

    Mukul> Can we achieve this (in 1.0 or 2.0)?

You could do so if you were prepared to write your own
serializer. Then you could have an extension attribute which took an
XPath expression as its value, indicating which parts of the output
tree to write as CDATA.

Not trivial though, and (I would have thought) fairly pointless.
-- 
Colin Adams
Preston Lancashire

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.