xsl-list
[Top] [All Lists]

Limit the length of transformed content from source text nodes

2005-10-24 08:04:06
Hello folks

Is there a way to limit the length of transformed content from source text nodes via XSLT?

Here's an example:

<!-- source -->
<foo>
<item>This is the body of an article I'm striving to snip.</item>
</foo>

I need to simulate the shrinking mechanism commonly used in content summaries, where the bodies of available articles are snipped to their first words followed by ellipsis (...), like this:

<!-- result -->
<snippets>
<snippet>This is the body of [...]</snippet>
</snippets>

Many thanks

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>