xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Newline problems


Subject: Re: [xsl] Newline problems
From: Rob Rohan <me@xxxxxxxxxxxx>
Date: 02 May 2003 21:50:56 -0700

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor