Bob Timms wrote:
> I'm trying to use XSLT in DW to do a news feed and can't
figure out how to
> limit the number of words in the description.
My knowledge of XSLT is pretty basic, so I can't suggest a
way to select
a specific number of words. However, it's very easy to select
the first
sentence. The following example cuts off the contents of a
<description>
tag at the first period followed by a space, and adds an
ellipsis:
<xsl:value-of select="substring-before(description, '.
')"/>
<xsl:text>...</xsl:text>
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS4",
"PHP Solutions" & "PHP Object-Oriented Solutions"
http://foundationphp.com/