
October 6th, 2003, 09:50 PM
|
|
Junior Member
|
|
Join Date: Aug 2003
Posts: 6
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
<xsl:apply-templates select="..."> question
Hi,
I've got a list of keywords throughout an XML file, and need to filter them out, and sort them by letter.
I can print them all out as a long list, but can't seem to print just one letter (eg all keywords starting with d).
I'm probably missing something really simple
The keyword tags only contain text and nothing else.
<xsl:template match="keyword">
<xsl:apply-templates select="self::[starts-with(text(),'d')]">
<xsl:sort select="."/>
</xsl:apply-templates>
Thank you
|