Subject: Re: [xsl] Can group-by treat its target it two ways? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 07 Nov 2011 12:15:59 -0500 |
' or<xsl:for-each-group select="Word" group-by="if (lower-case(substring(@word,1,1)) eq 'D
lower-case(substring(@word,1,1)) eq 'E' or lower-case(substring(@word,1,1)) eq 'E!' or lower-case(substring(@word,1,1)) eq 'E>') then lower-case(substring(@word,1,1)) else if (lower-case(substring(@word,1,2)) eq 'ch') then 'ch' else lower-case(substring(cps:remove-diacritics(@word), 1, 1))">
if matches(lower-case(@word),'^([D EE!E>]|ch)') then replace(lower-case(@word),'^([D EE!E>]|ch).*$','$1') else lower-case(substring(cps:remove-diacritics(@word), 1, 1))
Cheers, Wendell
-- ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Can group-by treat its ta, Mark | Thread | Re: [xsl] Can group-by treat its ta, Andrew Welch |
Re: [xsl] Locating an attribute and, Wendell Piez | Date | Re: [xsl] Locating an attribute and, Michael Kay |
Month |