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

Subject: RE: [xsl] How to substitute a portion of the text value of an element
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 7 Oct 2008 21:06:31 +0100
> 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/

Current Thread