I'm getting an error message when I use an xsl 2.0 character-map:
 
net.sf.saxon.s9api.SaxonApiException: Cannot use character maps in an environment with no Controller. I've been digging through the javadoc and the documentation but I can't figure out what I have to do to set things up to allow for the use of character maps. Can anyone get me started?
 
Steve
 
 
My stylesheet starts as follows:
 
<?xml version="1.0"?>
<
xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/02/xpath-functions" exclude-result-prefixes="fn"
>
    <xsl:import href="common04.xsl"/
>

    <xsl:import href="table.xsl"/
>

    <xsl:output indent="yes" doctype-public="-//OASIS//DTD DocBook XML V4.2//EN" doctype-system="../../dtd/docbookx.dtd" encoding="UTF-8" method="xml" omit-xml-declaration="no" version="1.0" use-character-maps="AccentureProblems"/
>

    <xsl:character-map name="AccentureProblems"
>
        <xsl:output-character character="&#x2003;" string=" &amp;#x2003;" /
>
        <xsl:output-character character="&#xf3;" string="&amp;#xf3;" /
>
        <xsl:output-character character="&#x2002;" string="&amp;#x2002;" /
>
        <xsl:output-character character="&#x2014;" string="&amp;#x2014;" /
>
        <xsl:output-character character="&#x2007;" string="&amp;#x2007;" /
>
        <xsl:output-character character="&#x2013;" string="&amp;#x2013;" /
>
        <xsl:output-character character="&#x25a1;" string="&amp;#x25a1;" /
>
        <xsl:output-character character="&#x2022;" string="&amp;#x2022;" /
>
        <xsl:output-character character="&#xf7;" string="&amp;#xf7;" /
>
        <xsl:output-character character="&#xe9;" string="&amp;#xe9;" /
>
        <xsl:output-character character="&#x2212;" string="&amp;#x2212;" /
>
        <xsl:output-character character="&#xa0;" string="&amp;#xa0;" /
>
        <xsl:output-character character="&#xae;" string="&amp;#xae;" /
>
    </xsl:character-map>