Thiabek
[...]
> I tried that but it is not working .
> i think it is due to processor (SABLOTRON) WHICH I AM USING .
Can you not use a different processor that implements xsl properly?
Otherwise you're going to have put this after your body/text() template:
<xsl:template match="text()[
string-length(translate(.,'	

 ',''))=0]"/>
This translates whitespace characters (tab, linefeed, carriage-return and
space)
into '' and so checks if the node contains anything else.
[...]
> and it is very rarely happens that you find text inside body .
> normally text had atleast some tag as parent.
> what do you say?
the output of your stylesheet should convince you otherwise - there's lots
of text inside body tags, from the point of view of the xml parser. The
trouble
is that lots of it is just whitespace.
Get a better processor is what I say :)
Tom
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|