XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Conditional statements in DTD?

Oh, that is for a <report> btw, the <assert> would have it negated.  You
get the idea!

Cheers
Rick



>>
>>> (Without extension functions, though, I don't
>>> think Schematron can require that if @x is "yes", then @y
>>> must be a prime number.)
>>
>> if(@x='yes') then
>>  not(some $i in 2 to (xs:integer(@y)-1) satisfies (@y mod $i) = 0)
>
> Even in XML 1.0
>
>   (@x mod 2) = 0 or
>   (@x mod 3) = 0 or
>   (@x mod 5) = 0 or
>   (@x mod 7) = 0 or
>   (@x mod 11) = 0 or
>   (@x mod 13) = 0 or
>   (@x mod 17) = 0 or
>   (@x mod 19) = 0
>
> on the understanding that the assertion *test* may be lossy compared to
> the assertion *text* (no false negatives).
>
> In Schematron the assertion text has the primacy: you can even make
> assertions for which no effective test exists, such as "This element is a
> date, in any notation and calendar, but ISO 8601 is preferred."
>
> Cheers
> Rick
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS