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 January 29th, 2009, 06:15 PM
Authorized User
 
Join Date: Oct 2006
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to eliminate spaces in XSLT 1.0

Hi. I'm using XSLT 1.0.

I like to change "DEC 28 2008" to "DEC282008" by eliminating the spaces.

I tried using normalize-space() and translate(), but they didn't work for me.

For translate(), I did this (but didn't work):
translate(., ' ', '')

Is there way to do this?

Please don't answer saying that I need to use XSLT 2.0
 
Old January 29th, 2009, 07:13 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Your translate() call looks just fine to me. If it didn't work, then we need to see how you used it.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to hide or eliminate console window mohammed imam ahamed Java Basics 0 November 1st, 2008 11:05 PM
How to eliminate all the extra zero? kuku SQL Server 2000 3 June 29th, 2005 09:47 PM
How to eliminate special characters from string dadahonde VB How-To 2 March 11th, 2005 05:14 AM
eliminate duplicates where attribute names differ dasdrs XSLT 2 August 9th, 2004 09:29 AM
eliminate duplicates in selected columns Callie SQL Server 2000 3 April 29th, 2004 10:57 PM





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