RE: Re: Replace Apostrophe Template -- very briefexamp
Sorry, feeling stupid again, but I've tried this: <xsl:template match="para"> <p> <xsl:call-template name="escape-apos"/> <xsl:value-of select="."/> </p> but still no change to \' ??? Thanks, Kathy -----Original Message----- From: Dimitre Novatchev [mailto:dnovatchev@xxxxxxxxx] Sent: Friday, October 10, 2003 3:36 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Replace Apostrophe Template -- very brief example...not working Put the xsl:call-template within a template matching (any) text node. ===== Cheers, Dimitre Novatchev. http://fxsl.sourceforge.net/ -- the home of FXSL "Kathy Burke" <Kathy_Burke@xxxxxxxxx> wrote in message news:395DE57EA5BB7F4E952B7B89775350B5021E4232@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx > I did TRY calling it, but must not have done it correctly. Were would I call > it from, Tom? I would like it to apply to all output content. > > Thanks. Kathy > > -----Original Message----- > From: Passin, Tom [mailto:tpassin@xxxxxxxxxxxx] > Sent: Friday, October 10, 2003 2:52 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: Replace Apostrophe Template -- very brief > example...not working > > > [ Kathy Burke] > > > > Hi, since I realize I posted my example that I'm sure was too long for > > anyone to want to slogg through it, I'm reposting with a very > > brief example > > hoping someone can help me. > > > > ... > > <body> > > <xsl:apply-templates/> > > </body> > > If you expect to escape-apos template to be invoked, you will have to > call it. The template will not be applied automatically from > apply-templates since it does not match any node. When it is called > with the right parameter, it __does__ escape the apostrophe. > > Cheers, > > Tom P > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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