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

Re: Rephrasing the problem [was Re: Second try: Search

Subject: Re: Rephrasing the problem [was Re: Second try: Search and replace many strings that may not be present in target
From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx>
Date: Mon, 20 May 2002 13:24:56 -0600
rephrasing
At 01:05 PM 5/20/2002, you wrote:
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.


Bye.


Greg Faron Integre Technical Publishing Co.



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.