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

Re: CDATA back to its original shape

Subject: Re: CDATA back to its original shape
From: Ruben Inoto <ris2@xxxxxxxxx>
Date: Thu, 15 Feb 2001 14:16:13 +0100
flash cdata lt
>If you said _why_ you wanted to use CDATA marked sections someone may
>suggest what approach you should take, but note that CDATA sections are
>just a authoring shortcut to avoid writing lots of &lt; unline elements
>or attributes they have no effect on the actual result of the parse in
>the XPath tree model of an XML document.

>David

 The reason is that I would like my XML document to store information about, among
other things, flash objects, like this one:

    <my_object>

     <![CDATA[
      <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"

              WIDTH=550 HEIGHT=400>
       <param NAME=movie VALUE="Película1.swf">
       <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000>
       <EMBED src="Película1.swf"
              quality=high bgcolor=#000000
              WIDTH=550 HEIGHT=400
              TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">

       </EMBED>

     </OBJECT>
     ]]>

   </my_object>

  ... and instead of going through all the tags inside the OBJECT I thought it
could be done in an easier way with CDATA enclosing everything.

   Thank you very much anyway,

//Ruben


>
>     I have a problem using CDATA in my XML document.
>
>     I know that this code used in XSL...
>
>       <object>
>           <![CDATA[
>               <more_tags>anything</more_tags>
>           ]]>
>       </object>
>
>      ...will give me the output that I want:
>
>       <object>
>               <more_tags>anything</more_tags>
>       </object>
>
> No it won't!! It will produce something like
>
>       <object>
>               &lt;more_tags&gt;anything&lt;/more_tags>
>       </object>
>
>      .. but I would like to have the code with CDATA in my XML document
>    instead, retrieve it from XSL and transform it to its original shape
>    again producing HTML with the tags I had in XML. Can I do it?
>
>     Thank you.
>


 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.