xsl-list
[Top] [All Lists]

RE: delete the white spaces

2004-06-04 08:11:37
-----Original Message-----
From:     Dionisio Ruiz de Zarate <dionisio(_at_)tinieblas(_dot_)com>

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(_at_)onebox(_dot_)com - email







<Prev in Thread] Current Thread [Next in Thread>