I've been given the task of integrating an XML property search system from EGPropertylink into a client website.
Everythings fine, apart from images. The image filenames come through in XML like this:
<server_filename>0000284929/image1.jpg</server_filename>
but the actual URL for the image is:
http://www.blah.blah/PropertyImages/29/0000284929/image1.jpg
The bit that is bothering me is the /29/ bit in that URL. That bit is dynamic, and is taken from the last two characters in the numeric property ID (in this case, 0000284929).
Consequently, I need to use PHP's substr function to grab the last two numbers from the propertyID, but from within the XSL stylesheet.
How would I go about doing this? Is it even possible? EGPropertyLink supply ASP example code that uses VBScript, which is obviously no good in this instance.