Subject: [xsl] Find elements where any attribute contains alpha-numerical chars of an input string From: Philipp Kursawe <phil.kursawe@xxxxxxxxx> Date: Fri, 2 Nov 2012 23:54:22 +0100 |
I have this rather complex xpath: //element[@*[contains(translate(., translate(., 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', ''), ''), translate('string', translate('string', 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', ''), ''))]] where "string" would be an input string with non-alpha chars and spaces and mixed letter cases. I would like to select any element whose attributes contain parts of the input string, stripped by non-alpha chars and whitespace. Problem is, the xpath does not work for mixed char input strings. Any ideas whats wrong? Thanks, Phil
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT whitebox testing, Florent Georges | Thread | Re: [xsl] Find elements where any a, Liam R E Quin |
Re: [xsl] Q: How can Firefox access, Hermann Stamm-Wilbra | Date | Re: [xsl] Find elements where any a, Liam R E Quin |
Month |