Home >Online Product Documentation >Table of Contents >Using an Extension Function in Stylus Studio
The process of using an extension function in Stylus Studio involves three main steps:
SystemDate() method returns the system date and time as a string:.class file to a location defined in the host's CLASSPATH environment variable.
xsl:stylesheet tag. For example, define a namespace as xmlns:Ext where Ext is the prefix to use when calling the class methods. (Ext is not a predefined keyword; it can be replaced by any other legal string.) The namespace reference then takes the class name as a value. In this example, the whole reference looks like the following:The class is now available from within the stylesheet and can be used in a template such as the following:
The XSLT stylesheet might look like the following: