This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Why processor or stylesheets puts strange output
- From: TSchutzerWeissmann at uk dot imshealth dot com
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 23 Aug 2002 14:52:31 +0100
- Subject: RE: [xsl] Why processor or stylesheets puts strange output
- Reply-to: xsl-list at lists dot mulberrytech dot com
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