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

RE: Replace Apostrophe Template -- very briefexample..

Subject: RE: Replace Apostrophe Template -- very briefexample...not working
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>
Date: Fri, 10 Oct 2003 15:39:45 -0400
xsl replace template
UGH...I had forgotten the with-param!  Thanks...works great.  Learned
something new.

I really appreciate the responses.

Kathy

-----Original Message-----
From: Passin, Tom [mailto:tpassin@xxxxxxxxxxxx]
Sent: Friday, October 10, 2003 3:21 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Replace Apostrophe Template -- very brief
example...not working


[ Kathy Burke]

> I did TRY calling it, but must not have done it correctly. 

Guess not, since you did not have an xsl:call-template instruction in
the stylesheet you posted.  If you do not invoke a template with its
match expression, and you do not call it by name, there is no other way
to apply it.

> Were would I call
> it from, Tom? I would like it to apply to all output content.
> 

As an example, for just the para element -

<xsl:template match="para">
   <p><xsl:call-template name='escape-apos'>
      <xsl:with-param name='string' select='.'/>
      </xsl:call-template></p>
</xsl:template>

In general, anywhere you would otherwise insert the string value of an
element, you would call the template instead.

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


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.