Restricting values in XML Schema with now()

V

Victor Engmark

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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top