[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Why processor or stylesheets puts strange output

Subject: RE: Why processor or stylesheets puts strange output
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Fri, 23 Aug 2002 14:52:31 +0100
strange characters xml xd translate
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(.,'&#x9;&#xA;&#xD;&#x20;',''))=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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.