Showing posts with label XSL. Show all posts
Showing posts with label XSL. Show all posts

Friday, 13 January 2012

How do get the current date in XSL

I am trying to filter out the expired items in an XML file using XSLT... I almost have it done except the last step of how to get the current date (to use to compare the endDate attribute in the xml node)...

It seems it is impossible to do it pure in the client side.

Ways to display XML data on browser


  • Open the xml file from IE
  • Open XML file from IE using XSL
  • Use jQuery to load the whole XML file into a container
  • Use jQuery to parse the XML file into a container
  • Display the XML file (with/without XSL) in an iframe tag of the HTML file
       e.g. <iframe src="test.xml" scrolling="no" frameborder="0"></iframe>