[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tellico-users
Subject:    Re: Case insensitive sorting
From:       Robby Stephenson <robby () periapsis ! org>
Date:       2023-05-03 16:15:49
Message-ID: CACFDV6544B3RH6OsjgCiHnD1-NFhi5iJ5wj+s6g2OikOvR0ZcQ () mail ! gmail ! com
[Download RAW message or body]

On Wed, May 3, 2023 at 9:04 AM Bill Gee <bgee@campercaver.net> wrote:

> I found one suggestion to use a lower-case() function, as this:
>
> <xsl:sort lang="$lang" select="lower-case(@title)"/>
>
> I tried that but got only a blank report.  One source I found for this
> says that lower-case() is not available in xsl 1.0.
>

The XSLT library that Tellico uses only supports xsl 1.0, so all of
Tellico's stylesheets stay compatible with that.


> I then put in your suggestion from below which works perfectly.  I
> produces the report I want.  It is not an ideal solution for two
> reasons.  First, it will go away when the next Tellico upgrade is
> installed.  Second, it gives no option to use case-sensitive sorting if
> that is wanted.
>

My suggestion would be to copy the Group_View.xsl to a new file in the same
folder and make the edit. That way it doesn't get affected with the next
upgrade and also gives you the option of using either report (with or
without sorting).


> Robby
>

[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Wed, May 3, 2023 at 9:04 AM Bill Gee &lt;<a \
href="mailto:bgee@campercaver.net">bgee@campercaver.net</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">I found one suggestion to use a lower-case() function, as \
this:<br> <br>
&lt;xsl:sort lang=&quot;$lang&quot; select=&quot;lower-case(@title)&quot;/&gt;<br>
<br>
I tried that but got only a blank report.   One source I found for this <br>
says that lower-case() is not available in xsl 1.0.<br></blockquote><div><br></div><div>The \
XSLT library that Tellico uses only supports xsl 1.0, so all of Tellico&#39;s stylesheets stay \
compatible with that.</div><div>  </div><blockquote class="gmail_quote" style="margin:0px 0px \
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I then put in your \
suggestion from below which works perfectly.   I<br> produces the report I want.   It is not an \
ideal solution for two <br> reasons.   First, it will go away when the next Tellico upgrade is \
<br> installed.   Second, it gives no option to use case-sensitive sorting if <br>
that is wanted.<br></blockquote><div><br></div><div>My suggestion would be to copy the \
Group_View.xsl to a new file in the same folder and make the edit. That way it doesn&#39;t get \
affected with the next upgrade and also gives you the option of using either report (with or \
without sorting).</div><div>  </div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Robby  \
<br></blockquote></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic