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

Re: A whitespace question, but probably not the same a

Subject: Re: A whitespace question, but probably not the same as the otherone s
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 7 Jun 2001 10:36:56 -0600 (MDT)
rtf documents white space
Nice, Kerry A. (LNG-SHEP) wrote:
> Ok, I've looked through the faq and can't figure this one out.  I have some
> nodes that I handle directly, so putting normalize-space into a value-of
> fixes the problem like:
> <xsl:if test="@typestyle='un'">
>   {\ul <xsl:value-of select="normalize-space(.)"/>}
> </xsl:if>
> 
> Except I have a bunch of screwy XML (I didn't design it, I just take what my
> process gets), that I had to handle with this template match="*" node that a
> helpful person on this list suggested previously.  Basically, there are
> <nl/> tags scattered randomly throughout the document.  I hope this is
> enough information.  The end product is a RTF document.
> 
> The basic problem is for nodes like <p>, I can't figure out where to put a
> normalize-space, so I end up with output like:
> ... accepted
> Rice's  ...
> 
> which ends up as:
> ... acceptedRice's ...
> when you look at the resulting document in Word.

You still haven't said what the problem is, or what you're really trying 
to accomplish.

I suspect what you're really trying to do is replace linefeed characters
with something else? Hard to tell exactly without seeing the actual input 
and the desired output.

   - Mike
_____________________________________________________________________________
mike j. brown, software engineer at  |  xml/xslt: http://skew.org/xml/
webb.net in denver, colorado, USA    |  personal: http://hyperreal.org/~mike/

 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.