XML Xpath question
Can anyone tell me how it would be possible to compare dates using variables with attribute values in a XML node. This is what I have, but it doesn't work.
strXpath = "//time_block[@end_dttm >'" & dtEstStartDtTm & "' and @start_dttm <'" & dtEstEndDtTm & "']"
If I remember correctly,XSL does not have any thing like date object,therefore you will need to write a template that will compare values as strings...
If you use the W3CDTF (http://www.w3.org/TR/NOTE-datetime) then it's quite simple to work with dates as simple strings. Otherwise, you can always use EXSLT Dates and Times module (http://www.exslt.org/).
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Thanks all. It sounds comparing with simple date strings is the way to go here. It would really be nice though if there was a simple date function.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)