W3C home > Mailing lists > Public > www-validator@w3.org > March 2005

Re: [VE][64] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 18 Mar 2005 15:27:34 +0200 (EET)
To: sudheerk <sudheerk@logixworld.com>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0503181523040.26506@korppi.cs.tut.fi>

On Fri, 18 Mar 2005, sudheerk wrote:

>      My <colorcombination> tag has two elements, such that either of two
> can exist or only one can exist, but atleast one must exist and two
> elements has to be existed only once in that <colocombination> tag.

And how does this requirement relate to the validator? It sounds like you
have a problem with writing a DTD, probably an XML DTD. So I'm afraid it
might be off-topic in the www-validator list. But briefly, if that's the
sole content of an element, and if either order is to be allowed, then I
would say that you can use a content model like
(A | B | A B | B A)?

(Disclaimer: I'm not that good in XML DTDs.)

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 18 March 2005 13:28:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT