Re: Rephrasing the problem [was Re: Second try: Search
At 11:51 AM 5/20/2002, you wrote:Sample Input <kc> <quotes> <quote who="Peter P. Peters"/> <quote who="Bernadette Peters"/> <quote who="Seth David Schoen"/> </quotes> <section> <p>This paragraph refers once to Peter P. Peters, once to Bernadette Peters, and then again to Peter P. Peters.</p> </section> <section> <p>This paragraph refers to Harry Smith and Seth David Schoen. Also Bernadette Peters.</p> </section> </kc>
Awww crap. Hopefully, this will be my last response to the original query... I had forgotten that I edited your XML sample to remove all of the hard returns ('\n') from the <p> elements. You might want to set up an initial conversion before calling the "linkify" template (see other post) that translates newlines to spaces and then normalize-space() on the text() node. At that point, the rest of the posted code will work fine.
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