RE: Truncating output of a node
Jim, >I guess another possibility it to output n characters and add '...' at the >end to create the summary. Is that any easier? It might _seem_ easier, until you start worrying about whether n characters might end anywhere between the first character of a <span> tag and the last character of a </span> tag. You might have the same problem with going by sentences, if ever '. ' occurs that is not the end of a sentence yet is in between a <span> and a </span>. I agreed with an earlier post that it would be _much_ easier if your sentences were marked with <sentence> </sentence> tags/ Rick Suiter XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format