|
Subject: Re: [xsl] Group by optimism From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 13 Feb 2026 17:51:32 -0000 |
I have it working, but curious if there is a way to optimize the code or make it more readable.
group-by="matches(upper-case(substring(normalize-space(caseName/.), 1, 1)),'^[A-Z]')"
seems to use substring to select the first character after white space normalization, then in the regular expression ^ to match from the start, it seems
would do the same, i.e. check that the first character in caseName after white space normalization is an ASCII letter.
But again, the shorter expression might appear easier to read by an outsider while the longer expression might just express how you thought about selecting the value for the group by.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Group by optimism, rick@xxxxxxxxxxxxxx | Thread | Re: [xsl] Group by optimism, Liam R. E. Quin liam |
| [xsl] Group by optimism, rick@xxxxxxxxxxxxxx | Date | Re: [xsl] Group by optimism, Liam R. E. Quin liam |
| Month |