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

Truncating output of a node

Subject: Truncating output of a node
From: Jim Schmidt <JSchmidt@xxxxxxxx>
Date: Wed, 18 Apr 2001 15:07:36 -0700
stop output
I am trying to output the first n sentences of a node. I have tried using
for-each with a conditional to stop output but have had no luck.

Given the following XML fragment, what is the best way to output only the
first n sentences? Note that the node has both text and child nodes.

<summary>
    It is best to start a new <span class="highlight">message</span> for a
new thread.  Do not start a
    new thread by replying to an unrelated <span
class="highlight">message</span> and just changing the
    subject line, since the header of your <span
class="highlight">message</span> will contain references
    to the previous <span class="highlight">message</span> and your new
<span class="highlight">message</span>
  will appear in the archive as one of the replies to the original <span
class="highlight">message</span>.
</summary>

Thanks in advance,
Jim


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.