Try the XML version of this page. If you have problems with it, consult the compatibility page.
The Select Parameters Utility helps you create dynamic web pages. You can use it to let users of your webpages select the parameters that they want to apply within the stylesheet.
Import the selectParameters.xsl stylesheet into your stylesheet:
<xsl:import href="selectParameters.xsl" />
Call the template 'insert-selectParameters-form' at the point where you want to insert the form that allows the users to select parameter values:
<xsl:call-template name="insert-selectParameters-form" />
Add the 'doc' namespace to your stylesheet as an extension prefix:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://www.jenitennison.com/xslt/doc" extension-element-prefixes="doc">
Add documentation to your stylesheet to limit the values that users can select for the parameters:
<doc:param name="function"> <doc:label>Function: </doc:label> <doc:choice><doc:value>concat</doc:value><doc:choice> <doc:choice><doc:value>starts-with</doc:value><doc:choice> <doc:choice><doc:value>contains</doc:value><doc:choice> <doc:choice><doc:value>substring-before</doc:value><doc:choice> <doc:choice><doc:value>substring-after</doc:value><doc:choice> </doc:param>
There are five options that you can set as parameters for the 'insert-selectParameters-form' template, namely:
/xslt/utilities/selectParameters.xml by Jeni Tennison; generated using SAXON 6.5 from Michael Kay