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

RE: Preserving XHTML markup

Subject: RE: Preserving XHTML markup
From: "Brinkman, Theodore" <Theodore.Brinkman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Feb 2002 13:17:51 -0500
RE:  Preserving XHTML markup
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@xxxxxxxxx]
Sent: Monday, February 04, 2002 1:14 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  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


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.