Restricting values in XML Schema with now()

Discussion in 'XML' started by Victor Engmark, Apr 6, 2004.

  1. How can I restrict the value of a simple element to be before the
    present date? I have the following, but it doesn't seem to be correct:
    <simpleType name="created">
    <restriction base="date">
    <maxInclusive value="now()"/>
    </restriction>
    </simpleType>

    Also, I would like to be able to restrict this value even more, by using
    something like <maxInclusive value="now(),value-of(../lastEdited)"/>.
    What would the syntax be like?

    --
    Victor Engmark
     
    Victor Engmark, Apr 6, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page