W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Restricting text in mixed content element

From: <richard.liu@ubs.com>
Date: Fri, 7 Dec 2001 10:44:23 -0500 (EST)
Message-Id: <H00000eb04a50e01@MHS>
TO: xmlschema-dev@w3.org
I am using XML Spy.

I have a mixed-content element.  I would like to restrict the text in the 
element.  Specifically, I would like to exclude the square brackets.

I tried defining a datatype that restricts xs:string, then extending that to 
the element in question.  That seems to work except when an occurrence of the 
element contains not only text, but also some of the other elements that are 

Am I misunderstanding something, or is there a bug in XML Spy?

Richard R. Liu
eBS - Publishing
Hochstr. 16, 2149
CH-4053 Basel
Tel. +41 (0)61 288-7689 
Received on Saturday, 8 December 2001 15:33:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:56 UTC