RE: [xsl] delete the white spaces

Subject: RE: [xsl] delete the white spaces
From: cknell@xxxxxxxxxx
Date: Fri, 04 Jun 2004 11:11:37 -0400
-----Original Message-----
From:     Dionisio Ruiz de Zarate <dionisio@xxxxxxxxxxxxx>

how can i:

1.- delete the whie spaces and show:
holasoyyo

<xsl:value-of select="translate(root,' ',''") />

2.- how can i substitute the whiel spaces with %20?
hola%20soy%20yo

This is more complicated because the translate() function is a one-for-one function. You could move to XSLT 2.0, or use an extension function supported by your processor.

-- 
Charles Knell
cknell@xxxxxxxxxx - email






Current Thread