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

RE: DTD Element problem

Subject: RE: DTD Element problem
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 6 Nov 2003 15:04:58 -0000
dtd element
This is one of the SGML facilities that wasn't carried forward into XML.
One of the aims of XML was that you should be able to skip reading the
DTD.

What has this got to do with XSL?

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Flemming Jønsson
> Sent: 06 November 2003 10:07
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  DTD Element problem
> 
> 
> I have some xml files containing source code (or SQL queries) 
> inside a particular tag.
> 
> In my DTD I wanted to define the element SQL to contain 
> #CDATA, but this is not allowed.
> 
> <!ELEMENT SQL (#CDATA)> is illegal,  <!ELEMENT SQL (#PCDATA)> 
> is legal.
> 
> In my XML files I have <![CDATA[{SQL_HERE}]> around my SQL 
> queries - which works fine, when SQL is defined as PCDATA in the DTD.
> 
> Is there another way I can define SQL to be CDATA instead of 
> PCDATA in the DTD? 
> It seems a bit redundant to define SQL as PCDATA in the DTD 
> and then explicitly define the contents of the SQL tag to be 
> CDATA in the XML file.
> 
> Regards,
> Flemming
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.