XSLT: How to escape square brackets in Urls

Posted by ilariac on Stack Overflow See other posts from Stack Overflow or by ilariac
Published on 2013-11-05T21:41:38Z Indexed on 2013/11/05 21:53 UTC
Read the original article Hit count: 273

Filed under:
|
|
|

I have a set of records from Solr where field[@name='url'] can have the following format:

http://url/blabla/blabla.aspx?sv=[keyword%20keyword,%201]

My understanding is that the square brackets denote an array syntax and I would like to use XSLT to remove the square brackets from all Urls. The reason for this is that I am using an Open URL resolver, which does not currently handle well those characters. The best option would be to strip the square brackets from all URLs before such resources are mediated by the Open URL resolver. There are cases where I have multiple occurrences of square brackets per Url. Can you please help me with this?

Thanks for your help,

I.

© Stack Overflow or respective owner

Related posts about url

Related posts about xslt