7. Commands

7.1. s:init

Container for Scheme initialization code. Should be a direct child of the x:stylesheet element.

Example 32. Using s:init

<x:stylesheet ...
  xmlns:s = "http://xsieve.sourceforge.net"
  extension-element-prefixes="s">

<s:init>
(use-modules (srfi srfi-1) (srfi srfi-2))
(load "myenv.scm")
(load "sxpathlib.scm")

... more Scheme initialization code ...

</s:init>

... the rest of the XSLT stylesheet ...

</x:stylesheet>