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

CDATA sections

  • From: Dawn Volkman <dawn@b...>
  • To: XML-DEV <xml-dev@l...>
  • Date: Tue, 16 Jan 2001 11:24:43 -0500

dawn volkman
Dear all, 

I am thinking of using CDATA sections for snippets of perl code
that exist on the pages of my document.  However, I didn't 
want me or anyone creating my documents to have to type out <![CDATA[  and ]]>
   everytime because it is tiresome and prone to errors.  I thought that giving
these sections a more meaningful and shorter name would get rid of errors, so 
I created entities -- but they don't work.  
Perhaps what I am trying to do just can't be done, but any ideas or pointers
would be greatly appreciated.  Thanks in advance.

snippets of my xml look like this:

<page>
Here is my page and I have some 

&startcode;
code right here 
&endcode;

that I will be using later
</page>


snippets of my dtd look like this:

<!ELEMENT page (#PCDATA)>
<!ENTITY startcode "<![CDATA[">
<!ENTITY endcode "]]>">




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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.