You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Darren Petrie <dp...@anteon.com> on 2003/05/15 17:41:16 UTC
Word Count
By chance has anyone written a transformer or generator that returns a
count of text words in an XML source? I have a need to determine the
number of words in my documents for translation purposes. I am
currently doing it via XSL but it's very inefficient. Before I try to
write a transformer to do it I thought I'd see if someone had already
done so.
Thanks,
Darren
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Word Count
Posted by Alex Romayev <ro...@yahoo.com>.
I'm not sure if it would do exactly what you need, but
pagination transformer does something very similar.
You can find it in scratchpad area.
-Alex
--- Darren Petrie <dp...@anteon.com> wrote:
> By chance has anyone written a transformer or
> generator that returns a
> count of text words in an XML source? I have a need
> to determine the
> number of words in my documents for translation
> purposes. I am
> currently doing it via XSL but it's very
> inefficient. Before I try to
> write a transformer to do it I thought I'd see if
> someone had already
> done so.
>
> Thanks,
> Darren
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> cocoon-users-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org