|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
casesensitive sorting in - apply templates
can any one help me
how to sort in applytemplates <xsl:apply-templates select="//CommonSynonyms/Synonym"> <xsl:sort order="ascending" select="Synonym"/> </xsl:apply-templates> when i do the above statement it is doing sorting but - sorting by case sensitive it is doing...shown below list::: i want sorting without casesensitve is it possible could anyone out there help me pls thank u with regards niha ========= below is the out put i m getting 169590-42-5 2,4 74711-43-6 4 CN 100 4 Celebra 2,3,4 Celebrex 2,3,4 Niflam 4 Onsenal 2 Peon 4 SC-58635 2,3,4 Soleton 4 YM-177 2,3,4 YM-74177 2 ZC 102 4 Zaltoprofen 4 Zycel 4 celecoxib 2,3,4 celecoxib FAP 2 |
|
#2
|
|||
|
|||
|
Try making the sorting case insensitive i.e
(not tested!) <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/> <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/> ...... <xsl:sort order="ascending" select="translate(Synonym, $lowercase, $uppercase)"/> ...... Here's what the specification says about sorting: case-order has the value upper-first or lower-first; this applies when data-type="text", and specifies that upper-case letters should sort before lower-case letters or vice-versa respectively. For example, if lang="en", then A a B b C c are sorted with case-order="upper-first" and a A b B c C are sorted with case-order="lower-first". The default value is language dependent. - Finnbarr |
|
#3
|
|||
|
|||
|
thank u - i will try that with regards - niha
thank u
i will try that with regards niha |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > casesensitive sorting in - apply templates |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|