[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Conditional statements in DTD?
- From: "C. M. Sperberg-McQueen" <cmsmcq@acm.org>
- To: David Carlisle <davidc@nag.co.uk>
- Date: Mon, 23 Mar 2009 18:35:38 -0600
On 23 Mar 2009, at 17:10 , David Carlisle 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)
>
Thank you, David! I was thinking, wrongly, of Schematron as using
only XPath 1.0; I am suitably chastened.
--
C. M. Sperberg-McQueen
http://www.blackmesatech.com
http://cmsmcq.com/mib
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]