Subject: Re: Re: [xslt transform & grouping] Using the Muenchian Method?
From: "Xsl List" <xsl@xxxxxxxxxxxxxxx>
Date: Tue, 28 Sep 2004 11:24:42 +0200
|
Hi Michael,
I get an empty body. Not an error.
You use the following data:
<Doc title="Mr"/>
<Doc forename="John"/>
<Doc surname="Smith"/>
and the following key:
<xsl:key name="contacts-by-surname" match="Doc" use="surname" />
<xsl:key name="contacts-by-surname" match="Doc" use="@surname" />
-------------------------------------------------------------^
The selection in use selects an element "surname" which doesn't exist.
A few Doc element have an attribute surname. Assuming you don't want
the entries with empty surname?
<xsl:key name="contacts-by-surname" match="Doc[@surname!='']"
use="@surname" />
Cheers,
Juergen
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
--+--
|