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

RE: what is correct way to express a type as CDATA in XML sche

  • To: "Phil Fuhlman" <pfuhlman@D...>,<xml-dev@l...>
  • Subject: RE: what is correct way to express a type as CDATA in XML schema
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Mon, 9 Sep 2002 10:29:16 -0700
  • Thread-index: AcJYJP4Ns4mVBgdNRveXIwsZpeWt/wAADzg1AAAltmAAABzRKg==
  • Thread-topic: what is correct way to express a type as CDATA in XML schema

cdata xsd
I believe 0x09 should be an invalid XML character regardless of whether it is in typed as CDATA (or in a CDATA section) or not. 

	-----Original Message----- 
	From: Phil Fuhlman [mailto:pfuhlman@D...] 
	Sent: Mon 9/9/2002 10:26 AM 
	To: Dare Obasanjo; xml-dev@l... 
	Cc: 
	Subject: RE:  what is correct way to express a type as CDATA in XML schema
	
	

	Thanks for the idea.
	
	I switched *from* a type derived from xsd:string to CDATA because the
	chunk of data that goes there can have 0x09, 0x0D and 0x0A characters in
	it.
	
	</pff>
	
	-----Original Message-----
	From: Dare Obasanjo [mailto:dareo@m...]
	Sent: Monday, September 09, 2002 12:21 PM
	To: Phil Fuhlman; xml-dev@l...
	Subject: RE:  what is correct way to express a type as CDATA in
	XML schema
	
	
	Use xsd:string
	
	        -----Original Message-----
	        From: Phil Fuhlman [mailto:pfuhlman@D...]
	        Sent: Mon 9/9/2002 10:19 AM
	        To: xml-dev@l...
	        Cc:
	        Subject:  what is correct way to express a type as
	CDATA in XML schema
	       
	       
	
	        MSXML4 fails on following (error: " undeclared XSD type: 'CDATA'
	"):
	       
	        <xsd:complexType name="AClass">
	                <xsd:all>
	                        <xsd:element name="Value" type="CDATA"
	minOccurs="0"
	        maxOccurs="1" />
	                </xsd:all>
	        </xsd:complexType>
	       
	        I checked through the schema[0-2] docs at http:\\www.w3c.org (as
	best I
	        could ;) ) but did not see any obvious example / discussion of
	how to
	        use CDATA as a 'type' in a schema. From examples I perceived
	that CDATA
	        might be an 'intrinsic' type, hence the above syntax, but it
	does not
	        work.
	       
	        Any ideas?
	       
	        </pff>
	       
	       
	-----------------------------------------------------------------
	        The xml-dev list is sponsored by XML.org <http://www.xml.org>,
	an
	        initiative of OASIS <http://www.oasis-open.org>
	       
	        The list archives are at http://lists.xml.org/archives/xml-dev/
	       
	        To subscribe or unsubscribe from this list use the subscription
	        manager: <http://lists.xml.org/ob/adm.pl>
	       
	       
	
	


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.