This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Preserving XHTML markup
- From: Eric Vitiello <xsl-list at perceive dot net>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 4 Feb 2002 13:30:45 -0500
- Subject: Re: [xsl] Preserving XHTML markup
- References: <7810000.1012844273@saturn.mackay.privatus.ca>
- Reply-to: xsl-list at lists dot mulberrytech dot com
-- Adam Sherman [Mon, 04 Feb 2002 12:37:53 -0500]:
>(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...
your problem is your XML itself. it should be:
<mycustomtag>
<![CDATA[Some html <b>here</b>.]]>
</mycustomtag>
then your XSL should be:
<p>
<xsl:value-of select="mycustomtag" disable-output-escaping="true"/>
</p>
---
Eric Vitiello
Perceive Designs
<www.perceive.net>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list