Hi I am trying to create an XSLT macro to change my blog page title based on the selected tag. What is the simplest way of grabbing the final value off the end of the url in XSLT?
Ah, hit the Submit too soon. I was going to add: Personally, I would just write an XSLT extension for this though, more performant and easier to debug. :-)
XSLT String manipulation
Hi,
http://www.bayshield.com/blog/tag/umbraco
Hi I am trying to create an XSLT macro to change my blog page title based on the selected tag. What is the simplest way of grabbing the final value off the end of the url in XSLT?
Thanks
Aaron
You could do something like LastIndexOf and then use the XSLT substring method to read the rest of the string.
What about substring-after function.
Remember to handle query string if any.
Ah, hit the Submit too soon. I was going to add: Personally, I would just write an XSLT extension for this though, more performant and easier to debug. :-)
Take a look here: http://sourceware.org/ml/xsl-list/2001-11/msg00455.html
is working on a reply...