June 2008
Intermediate to advanced
986 pages
27h 8m
English
Jacl is a Tcl (Tool Command Language) interpreter written
entirely in Java. We define the namespace prefix jacl-extension and associate it with the URI
http://tcljava.sourceforge.net. The
code is straightforward:
<?xml version="1.0"?> <!-- piechart-jacl.xsl --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:svg="http://www.w3.org/2000/svg" xmlns:months="http://www.oreilly.com/xslt/months" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:jacl-extension="http://tcljava.sourceforge.net" extension-element-prefixes="jacl-extension" exclude-result-prefixes="lxslt"> ... <lxslt:component prefix="jacl-extension" functions="cos sin"> <lxslt:script lang="jacl"> proc cos {d} {expr cos($d)} proc sin {d} {expr sin($d)} </lxslt:script> </lxslt:component>
To use these extension functions, your CLASSPATH must contain
jacl.jar and tcljava.jar,
available at http://tcljava.sourceforge.net, in
addition to bsf.jar and
commons-logging-1.1.jar.
Read now
Unlock full access