xsl >> Replace <P> with nothing

by Christian Frchlin » Mon, 20 Oct 2003 19:48:51 GMT

Alexandra wrote:

> Do you have an idea of how I should do it ?

You are treating the <p> like a substring but from the XML
parsers point of view this is a node in its own right. You
can try something like

<xsl:template match="content/p">
<xsl:value-of select=".">
</xsl:template>

[untested]



xsl >> Replace <P> with nothing

by Dimitre Novatchev » Tue, 21 Oct 2003 05:04:15 GMT


> You are treating the <p> like a substring but from the XML

The problem with this is that it would copy the "p" element and all of its
"p" descendents.


=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL





Similar Threads

1. Replace <P> with nothing

2. . Replace <P> with nothing