[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Conditional statements in DTD?
- From: "Steven J. DeRose" <sderose@acm.org>
- To: rjelliffe@allette.com.au, xml-dev@lists.xml.org
- Date: Tue, 24 Mar 2009 15:41:16 -0400
At 10:35 PM +1100 3/24/09, rjelliffe@allette.com.au wrote:
> >
>>> (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
>
To which I can only reply:
529
--
Steve DeRose -- http://www.derose.net, email sderose@acm.org
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]