xsl-list
[Top] [All Lists]

RE: [xsl] How to substitute a portion of the text value of an element

2008-10-07 16:07:32
I need to change that c:\test10 directory whether it is 
c:\test10 or c:/test10 and ideally make all the slashes in 
the value of the elements be the same throughout the xml 
document. Is there a function I can call to first convert the 
slashes to one unified format before applying the substring?

translate($x, '/', '\')

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--