19 Sep 2001 nik   » (Master)

dmerrill: Case insensitive sorting in XSLT is relatively simple. Consider this simple XSLT fragment:

<xsl:variable name="ucletters"
  select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<xsl:variable name="lcletters"
  select="'abcdefghijklmnopqrstuvwxyz'"/>

<xsl:template match="entry"> <xsl:sort select="translate(title, $lcletters, $ucletters)"/> <-- Do stuff --> </xsl:template>

Which will process something like

<entry>
  <title>Foo</title>
  <title>Bar</title>
  <title>Baz</title>
</entry>

In <title> order, not document order.

Latest blog entries     Older blog entries

New Advogato Features

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!