Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2007, 03:29 AM
Authorized User
 
Join Date: Feb 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default normalize-space()

when i'm using normalize-space()like this..
<xsl:value-of select="normalize-space(myNodePath)"/>

...the input value
PROCEDURE CGFK$CHK_TAR_TAR_PMU(#10; P_FIELD_LEVEL IN BOOLEAN) IS /* Is the trigger item level? */#10;/* Validate foreign key value/query lookup data. */#10;BEGIN#10; DECLARE#10; CURSOR C IS#10; SELECT PMU.PMU_BEZEICHNUNG#10; FROM PRAEMIENMODULE PMU#10; WHERE PMU.PMU_ID = :TAR.TAR_PMU_ID;#10; BEGIN#10; OPEN C;#10; FETCH C#10; INTO :TAR.DSP_PMU_BEZEICHNUNG;#10; IF C%NOTFOUND THEN#10; RAISE NO_DATA_FOUND;#10; END IF;#10; CLOSE C;#10; EXCEPTION#10; WHEN OTHERS THEN#10; CGTE$OTHER_EXCEPTIONS;#10; END;#10;END;#10;

is showing without #10;..but i need the #10; and also want to remove the space before starting of a line...before #10;...

if i use normalize-space() i can remove space but #10; is alo removing..how to get #10; ??






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using normalize-space() eg. with position() Smirre XSLT 5 November 11th, 2008 12:30 PM
Strangely working XSLT function normalize-space() seetaramayya XSLT 2 April 23rd, 2007 06:26 AM
Looks like a space but it isn't. rstelma SQL Server 2000 3 September 7th, 2005 07:17 PM
space crmpicco Javascript How-To 1 February 7th, 2005 01:26 PM
Normalize-space() not working AForgue XSLT 4 December 5th, 2003 12:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.