Subject: Re: [xsl] Can group-by treat its target it two ways? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 08 Nov 2011 11:00:37 -0500 |
if contains($seq,lower-case(substring(@word,1,1)))
Interesting, My "group-by" was used to name the files that each current-group() produced, one for each letter of the Czech alphabet. My very verbose expression did this using the current-grouping-key(). Would your code produce one file each for the four diacritical letters in $seq? or put them all in one file?
Also, don't forget the digraph 'ch', the ninth letter of the Czech alphabet - can you find a succinct way to insert it in your more terse expressions?
if matches(lower-case(@word),'^([DEE!E>]|ch)')
then replace(lower-case(@word),'^([DEE!E>]|ch).*$','$1')
else lower-case(substring(cps:remove-diacritics(@word), 1, 1))
group-by="if contains($seq,lower-case(substring(@word,1,1))) 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))"
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, Wendell Piez |
Re: [xsl] Calling C++ from XSLT, Steve Ball | Date | Re: [xsl] Can group-by treat its ta, Wendell Piez |
Month |