This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Preserving XHTML markup
- From: "Brinkman, Theodore" <Theodore dot Brinkman at standardregister dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 4 Feb 2002 13:17:51 -0500
- Subject: RE: [xsl] Preserving XHTML markup
- Reply-to: xsl-list at lists dot mulberrytech dot com
I'm hardly an expert on XSLT, but here's a possible solution.
Add a template for <b>.
<xsl:template match="b">
<b><xsl:value-of select="."/></b>
</x
-----Original Message-----
From: Adam Sherman [mailto:adam@tritus.ca]
Sent: Monday, February 04, 2002 1:14 PM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Preserving XHTML markup
On 02/04/2002 07:01:59 PM +0100, Markus Spath wrote:
> <xsl:template match="mycustomtag">
> <p>
> <xsl:copy-of select="." />
> </p>
> </xsl:template>
Sorry, that's what I tried first. Thing is, it does the <p> bit, but
doesn't preserve markup: you get:
<p>
Some html here.
</p>
Notice the lack of <b> tags.
Thanks,
A.
--
Adam Sherman
President & Chief Technologist
Tritus Consultant Group Inc.
+1 (613) 255-5164
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list