This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Preserving XHTML markup
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 4 Feb 2002 13:46:36 -0500
- Subject: Re: [xsl] Preserving XHTML markup
- References: <7810000.1012844273@saturn.mackay.privatus.ca>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Other responses to your question were almost there. This produces what you
asked for:
<xsl:template match='mycustomtag'>
<p><xsl:copy-of select='.'/></p>
</xsl:template>
Cheers,
Tom P
[Adam Sherman]
> (Newbie Alert!)
>
> xml:
> <mycustomtag>
> Some html <b>here</b>.
> </mycustomtag>
>
>
> How do I preserve things so I end up with:
>
> <p>
> Some html <b>here</b>.
> </p>
>
> My XSLT stylesheet loses all the markup in the children of
> selected/processed nodes...
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list