W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2001

How can I define PCDATA within a XSD schema

From: Eckhard Beisswenger <eBeisswenger@iRIX.ch>
Date: Wed, 31 Oct 2001 13:00:07 +0100
Message-ID: <680CFF729330D411A7FC0090279A55982032DF@IRIX_SRV_01>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
I am using schema definitions for my xml files, and I would like to place
HTML code as data in a XML file so that it can't be interpreted by the XSLT
parser, e.g. ...


...should deliver "<b>Hello</b>" in the HTML code generated by XSLT. But of
course, the <b> tag is not allowed within the xml element HTMLCODE.

The schema definition for HTMLCODE is

<xsd:element name="HTMLCONTENT" type="xsd:string"/>

Is there any possibility to define the content of HTMLCODE as "PCDATA"
inside my schema definition (as far as I am informed, there is no data type
comparable to PCDATA in XSD)

If anyone could help me I would be very glad. Many thanks in advance,
Eckhard Beisswenger
Received on Wednesday, 31 October 2001 06:51:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:57 UTC