Thanks Michael, for your response and the clarification.

I would now work toward implementing assertions on simple types as
well. I'll let the list know when I am ready with the code.

I might have some questions as well about this, which I'll post to the list.

On 7/29/08, Michael Glavassevich <[EMAIL PROTECTED]> wrote:
>
>
> Hi Mukul,
>
> Yes, assertions also apply to simple type definitions [1] allowing you to
> define new types like:
>
> <simpleType name='oddNumber'>
>   <restriction base='positiveInteger'>
>     <assert test='$value mod 2 eq 1'/>
>   </restriction>
> </simpleType>
>
> which you couldn't before with XML Schema 1.0.
>
> The comment in the spec you quoted applied to an earlier draft of XML Schema
> 1.1. Looks like the XML Schema WG forgot to delete it before publishing the
> June draft.
>
> Thanks.
>
> [1] http://www.w3.org/TR/xmlschema11-2/#rf-assertions
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: [EMAIL PROTECTED]
> E-mail: [EMAIL PROTECTED]


-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to