[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: word list and count from the text in an xml docume

Subject: Re: word list and count from the text in an xml document
From: James Fuller <james.fuller.2007@xxxxxxxxx>
Date: Sat, 12 Jun 2010 22:56:17 +0200
Re:  word list and count from the text in an xml docume

if its xslt 2.0 then u have all the useful regex ways as possible or
at worst http://www.exslt.org/regexp/

hth, James Fuller

On Sat, Jun 12, 2010 at 10:51 PM, Mark <mark@xxxxxxxxxxxx> wrote:
> Hi,
> I have been floundering around in the xsl-list archives for a while looking
> for a way to get a listing and count of all the words in every instance of
> specific element. Thousands of hits, but I think I am not using the correct
> search terms. I know what I want must be in the archive, but I just can't
> seem to narrow my search enough to find it.
> Given a fragment like (and concentrating on the moment on the lang="en"
> element):
> <Description>
>   <Data lang="cz"> bmla skvrnka na spodnm casti pmsmene L ve SLOV</Data>
>   <Data lang="en">white splotch on the lower bar on the L in SLOV</Data>
> </Description>
> <Description>
>           <Data lang="cz">barevn} bod pod dolnmm ramem vlevo od VHB</Data>
>           <Data lang="en">dot on the lower frame to the left of VHB</Data>
> </Description>
> I would like to create a list like the one below (it would be nice to be
> able to use a "stop word" list also so as to not count stuff like "on",
> ""the", etc.):
> bar        1
> dot        1
> frame    1
> in           1
> L            1
> left         1
> lower     2
> of           1
> on          3
> SLOV    1
> splotch 1
> the        3
> to         1
> white    1
> Mark

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.