W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

Regular expressions

From: by way of <mike_nahas@yahoo.com>
Date: Mon, 29 Jul 2002 15:59:08 -0600
Message-Id: <5.1.0.14.1.20020729155905.0250b1e0@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>




Sir or Madam:
	I'd like if the next XML Schema spec had a clear relationship to regular 
expressions. I (and a lot of other people) know and understand regular 
expressions.  They're well known by the parsing community.  So, I'd love it 
if the new spec contained things that had a relationship to +, *, ?, |, 
().  I suggest tag names of"atLeastOne" "anyNumber" "optionally", 
"chooseOne", and "grouping".
	So you might end up with something like this:

<element name="element">
	<chooseOne>
		<element name="isOfType>
			<attribute name="type" value="string">
		</element>
		<grouping>
			<optionally>
				<element name="extendsType>
					<attribute name="type" value="string">
				</element>
			</optionally>
			<anyNumber>
				<element name="attribute>
					<attribute name="name" value="string">
					<attribute name="value" value="string>
				<element>
			</anyNumber>
			<anyNumber>
				<element name="element">
					<attribute name="name" value="string">
				</element>
			</anyNumber>
		</grouping>
	</chooseOne>
</element>

	I think it is much cleaner than what is currently being used in schemas.

	Michael Nahas
Received on Monday, 29 July 2002 18:00:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT