Subject: RE: Replace Apostrophe Template -- very brief example...not working
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Fri, 10 Oct 2003 15:21:27 -0400
|
[ 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
| Current Thread |
- Re: Replace Apostrophe Template -- very brief example...not working, (continued)
- Dimitre Novatchev - Fri, 10 Oct 2003 15:00:30 -0400 (EDT)
- J.Pietschmann - Fri, 10 Oct 2003 15:01:00 -0400 (EDT)
- Michael Kay - Fri, 10 Oct 2003 17:59:03 -0400 (EDT)
- Passin, Tom - Fri, 10 Oct 2003 14:52:21 -0400 (EDT)
- Passin, Tom - Fri, 10 Oct 2003 15:22:04 -0400 (EDT) <=
- Passin, Tom - Fri, 10 Oct 2003 17:10:47 -0400 (EDT)
|
|