Get current date

As StackOverflow will quickly inform you, there are two primary ways of inserting the current date using XSL, all depending on which version you are using.

In XSLT 2.0: <xsl:value-of select="current-dateTime()"/>

Very nice and easy. Too bad BIP doesn't support it.

In XSLT 1.0 on the other hand you have to use some extension package or other and the whole thing becomes rather tedious (as always).

BIP to the rescue! Rather than implementing XSLT 2.0 properly, Oracle decided it was much better to implement just some parts of it, and then make custom extensions in most other cases. This is an example of the latter. Either way, it's fairly straight forward: xdoxslt:current_date('$locale', '$timeZone')

Where $locale is for example de-DE, and $timeZone could be Berlin/Europe.

results matching ""

    No results matching ""