The main gist is that any built-in Java class can be accessed by using the 'xalan://java.package.name.ClassName'
syntax. It is easiest if you 'import' the classes you need into your stylesheet using a namespace declaration at
the top of the file. For example:
Then later on in your stylesheet, you can call functions on the class using the defined namespace. In this
context, static members (aka 'class functions', such as Calendar.getInstance()) are called simply using the
namespace and a colon. Other member functions (such as Calendar.set(int field, int value), which operate on a
specific instance), take the instance variable as the first parameter, and all other parameters are shifted (so
the first parameter becomes the second, the second the third, etc).
Here's an example of this which parses a string that contains a GMT time and outputs it as a PST:
Note the use of 'xsl:value-of' statements in order to call an instance method on our variables. In XSLT, you
have to wrap your method call in a 'select=' type statement, either in a 'xsl:value-of' or as the evaluation of
an 'xsl:variable' in order for them to be executed.
You could call this somewhere in your style sheet by selecting the date value you wish to convert.
George Washington was born on