[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Preserving XHTML markup


Subject: Re: [xsl] Preserving XHTML markup
From: Markus Spath <mspath@xxxxxxxx>
Date: Mon, 04 Feb 2002 19:01:59 +0100

...
<xsl:template match="mycustomtag">
  <p>
    <xsl:copy-of select="." />
  </p>
</xsl:template>
...

should work (also newbie)

markus


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



Current Thread
Keywords