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

Re: Newline problems

Subject: Re: Newline problems
From: Rob Rohan <me@xxxxxxxxxxxx>
Date: 02 May 2003 21:50:56 -0700
Re:  Newline problems
On Fri, 2003-05-02 at 21:08, Vishwajit Pantvaidya wrote:
> I made changes to apply normalize-space to text nodes as suggested but 
> output again has no data. Do you see any obvious mistakes? Simplified src 
> xml and xsl are as shown below:
are you trying to do this?

...
<xsl:element name = "PO_NUMBER">
      <xsl:value-of
select="attr/atomicValue[normalize-space(../name)='ponumber']"/>
</xsl:element>
...

normalize-space is kind of like what most languages call trim(). In
other words '[LF]ponumber' != 'ponumber' (I guess those really aren't
words)
-- 
    _/  _/_/    _/_/_/
   _/_/   _/ _/     _/
  _/               _/
 _/             _/
_/          _/_/_/_/
http://treebeard.sourceforge.net
http://ashpool.sourceforge.net


 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.