Correct use of xsd:duration
This should cover W3C XML Schema, Relax NG and DTD related problems.
Correct use of xsd:duration
I have an element named dateEntered. To be valid it must be within the past 2 weeks. This explains what I'm trying to get to in pseudocode.
attribute dateEntered
{
xsd:date
{
minInclusive ="today" - P14D
maxInclusive ="today"
}
} , # a date within the past two weeks
Can somebody help me get to the real code?
attribute dateEntered
{
xsd:date
{
minInclusive ="today" - P14D
maxInclusive ="today"
}
} , # a date within the past two weeks
Can somebody help me get to the real code?
Hi,
You cannot do that in XML Schema and it is har do no it in any schema language I think, just because today is not clearly defined - is that the time when the instance is created or the time the instance is checked? If it is the later then it is really strange to see a document became invalid just because you perform the validation at a givem moment in time.
Best Regards,
George
You cannot do that in XML Schema and it is har do no it in any schema language I think, just because today is not clearly defined - is that the time when the instance is created or the time the instance is checked? If it is the later then it is really strange to see a document became invalid just because you perform the validation at a givem moment in time.
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service