I am trying to filter xml data using xslt version 2.0
Here some example xml data (my data follow this schema)
<Messages>
<Message time="2015-08-06 22:00:11" type="Success">A</Message>
<Message time="2015-08-07 22:00:07" type="Success">B</Message>
<Message time="2015-08-07 22:00:15" type="Success">C</Message>
</Messages>
I tried using this solution XPath query filtering by date which suggested I use translate to convert the dates into number but I am getting an error message (in Visual Studio) that says
Missing required whitespace
Here is my code:
<xsl:for-each select="Messages/Message[translate(@time, "- :", "") > translate('2015-08-06 22:00:11', "- :", "")]">