OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Re: RE : [xml-dev] Text or tags choice with XSD

[ Lists Home | Date Index | Thread Index ]

Paul Spencer scripsit:

> And the problem with "weird" is that you can guarantee that there will be as
> many different interpretations as there are schema tools. Whilst looking for
> a theoretical solution is what makes xml-dev great to read, in the real
> world I would always use mixed content here. In the right environment, I
> might add some Schematron to enforce the extra rules.

Or break the WXS addiction and use RNG instead:

element time {
	xsd:token {pattern = "\d{2}:\d{2}"} |
	(element hour {xsd:integer}, element min {xsd:integer})
	}

-- 
All Norstrilians knew what laughter was:        John Cowan
it was "pleasurable corrigible malfunction".    http://www.reutershealth.com
        --Cordwainer Smith, _Norstrilia_        jcowan@reutershealth.com




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS