Hi,
I use UDT as a phone book. My client want to have this list sliced by the letters.
I thought that I can filter the list by the letters with an extra field. when a record is filled the first letter will be put in this field. Then the xsl file will show only the records that have a certain letter (Like y for Yehuda)
I used the following code to show only the correct records and it works for a fixed letter:
<xsl:template match="/udt:UserDefinedTable">
<xsl:variable name="currentData" select="udt:Data[contains(udt:Lists,'Y')]" />
<table>
<xsl:apply-templates select="$currentData" mode="list">
</xsl:apply-templates>
</table>
</xsl:template>
I thought that I'll put links in a bar for every letter and send a query string that will reload the xsl with the link letter instead of the "Y" in the example above.
My problem is that I do not know how to code the xsl correctly.
I am not even attempting to use a more sophisticated method like letting the xsl take the first letter from the name field (Instead of having the admin insert it manually to a special field, but if there's a way to do it will be great)
Thank you for any advice.
Yehuda.