Hi
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Kathy Burke
Sent: Friday, October 10, 2003 9:14 PM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] 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