[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Replace Apostrophe Template -- very brief example.
Hi > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Kathy Burke > Sent: Friday, October 10, 2003 9:14 PM > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > Subject: RE: Replace Apostrophe Template -- very brief > example...not working > > > Sorry... > > The template from J. works except I not only get the \' in > the html source, I also get it when it parses to the browser. > For example "Kathy's" turns into Kathy\'s in both places and > my javascript is still complaining about the apostrophe. That's happening because you're calling the named template in the text() template. This template is applied in all text node of your source. If you only want to call the named template with a particular text node then change your text template to <xsl:template match="mynode/text()"> The 'mynode' will be the node where you want to change the apostrophes Regards, Americo Albuquerque 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
|