[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

no such function: key

Subject: no such function: key
From: "John Wang" <jwang@xxxxxxxxxxx>
Date: Fri, 4 May 2001 11:44:12 -0500
no such function key
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.