How to use XSLT 1.0 or XPath to manipulate an HTML string
问题 This is my problem: The code snippet below (inside the <xsl:choose> ) does not reliably strip <p> , <div> or <br> tags out of a string using a combination of the substring-before() and substring() functions. The string I'm trying to format is an attribute of a SharePoint SPS 2003 list item - text inputted via a rich text editor. What I ideally need is a catch-all <xsl:when> test that will always just grab the text within the string before a line break (effectively the first paragraph). I