Sorting on committers page is wrong

Details

Description

The xsl transformation that sorts the names from the .rdf files does something wrong.
My surname is "De Francisci Morales" but I end up being in the "M" list, while I should be in the "D" list.
The script should not try to break up surnames around spaces.

Sebb
added a comment - 03/Jan/12 12:43 I assume that you are referring to the following pages?
http://people.apache.org/committers.html
and
http://people.apache.org/list_M.html
If so, I'm not sure why the sorting fails; as far as I can tell, the sort only uses tha last name if both the foaf:surname and foaf:family_name entries are missing.
However, the generation process is rather complicated, so I could be missing something.

Gianmarco De Francisci Morales
added a comment - 03/Jan/12 13:38 Hi,
yes I am referring to those pages.
The logic you describe is the one I would expect.
However, I think there is an undue call to "substring-after-last" in the xsl.
{code}
<xsl:template match="foaf:Person" mode="sortWord">
<xsl:variable name="word">
<xsl:apply-templates select="." mode="lastName"/>
</xsl:variable>
<xsl:call-template name="substring-after-last">
<xsl:with-param name="marker" select="' '"/>
<xsl:with-param name="input" select="translate($word, 'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
</xsl:call-template>
</xsl:template>
{code}
I will try modifying the script and submitting a patch.

Gianmarco De Francisci Morales
added a comment - 03/Jan/12 19:34 It looks like the list is gone now.
Probably not the right fix.
By the way, the snippet I pasted is from privateDetails.xsl and I don't know about nav.xls

Sebb
added a comment - 03/Jan/12 19:59 Oops! not sure why there are no entries now - could not find any errors in the logs.
Will investigate further.
AFAICT, privateDetails.xsl is not used to generate the committers site; it is used by generateFoaflist.pl.
nav.xsl is a utility stylesheet used by the other stylesheets in https://svn.apache.org/repos/asf/infrastructure/site/trunk/people/templates