If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Thursday, April 12, 2012

Where XQuery meets XSLT2.0

Goal: Return input element whose @value should be set to current date formatted as [yyyy-MM-dd]

Problem: Xquery misses good support for formatting dates but offers current-date() function

Resolution: Use XSLT to postprocess custom XML tags (instructions) in own namespace

XQuery snippet:

XSLT to postprocess xquery result:

No comments:

Post a Comment