[xsl] no such function: key

Subject: [xsl] no such function: key
From: "John Wang" <jwang@xxxxxxxxxxx>
Date: Fri, 4 May 2001 11:44:12 -0500
Hello, All

I am trying to write a docbook xml document and convert it to html.
here is my xml document:

<?xml version="1.0"?>
<?xml-stylesheet href="d:/docbook/html/docbook.xsl" type="text/xsl"?>
<!DOCTYPE book SYSTEM "d:/docbook1/docbookx.dtd">
<book>
<title>book title</title>
<chapter><title>Introduction</title>
<para>para1</para>
<para>para2</para>
<para>para3</para>
<para>para4</para>
</chapter>
<chapter><title>Getting Started</title>
<para>para1</para>
<para>para2</para>
<para>para3</para>
<para>para4</para>
</chapter>
</book>
If I use IE5 with msxml3 installed, it works fine.

but when I use command line as following:

D:\docbook>java com.jclark.xsl.sax.Driver text.xml
d:/docbook/html/docbook.xsl > test.html

I got error message as below:

file:/d:/docbook/html/index.xsl:273: no such function: key

here is line 273 in the file:

<xsl:template name="generate-index">
  <xsl:variable name="terms" select="//indexterm[count(.|key('letter',
substring(&primary;, 1, 1))[1]) = 1]"/>

Could any one tell me what's wrong?

The command line I got is from

http://www.nwalsh.com/docbook/xsl/doc/publishing.html#c38b1b3b4

Thanks in advance.

-John



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread