Subject: RE: Tags to HTML page
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 10 Aug 2004 08:48:32 +0100
|
> Whenever there is a <h3> tag I should surrond it with more tags
>
> <myowntag:bind path="someCode">
> <h3>Test Conversion</h3>
> </myowntag>
>
>
> Basically the input is a JSP and I need to add some Tag
> libraries to it.
>
> What would be the best way to do it.
>
<xsl:template match="h3">
<myowntag:bind path="someCode">
<h3><xsl:apply-templates/></h3>
</myowntag:bind>
</xsl:template>
Note that writing a stylesheet in terms of template rules corresponds
exactly to the way you described the problem: "whenever there is an <h3> tag
[you mean element] I should..."
Michael Kay
| Current Thread |
- Tags to HTML page
- Subbiah - 10 Aug 2004 06:36:30 -0000
- Mukul Gandhi - 10 Aug 2004 07:46:01 -0000
- Subbiah - 10 Aug 2004 08:26:21 -0000
- Michael Kay - 10 Aug 2004 07:50:07 -0000 <=
- <Possible follow-ups>
- xptm - 11 Aug 2004 09:14:20 -0000
- xptm - 12 Aug 2004 13:12:53 -0000
|
|