xsl-list
[Top] [All Lists]

Re: [xsl] create escaped(?) html of some nodes

2006-10-08 19:24:45
Mukul,

thanks for the quick reply. Unfortunately this seems to change almost nothing at all (only the document element's attributes order changed a bit). While the idea seems good, the second template never matches better than the first and thus does not seem to be called.

And then, how can I do the escaping part, so that a <p> becomes a &lt;p&gt; ?

Jan

Mukul Gandhi schrieb:
It seems a modified identity transform will work.

<xsl:template match="node() | @*">
  <xsl:copy>
      <xsl:apply-templates select="node() | @*" />
  </xsl:copy>
</xsl:template>

<xsl:template match="Para">
  <p><xsl:apply-templates /></p>
</xsl:template>


On 10/9/06, Jan Limpens <jan(_at_)limpens(_dot_)com> wrote:
Hi,

I need help creating an encoded html string from some nodes of a
document, while leaving the others untouched


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--