Slightly improve performance of XPath Rule UseLocaleWithCaseConversions

This commit is contained in:
Andreas Dangel
2017-01-08 13:51:44 +01:00
parent af3ad2bc02
commit c0e1c3e731

View File

@@ -723,18 +723,19 @@ have unusual conventions, i.e. Turkish.
<property name="xpath"> <property name="xpath">
<value> <value>
<![CDATA[ <![CDATA[
//PrimaryExpression[not(PrimaryPrefix/Name[ends-with(@Image, 'toHexString')])] //PrimaryExpression
[ [
PrimaryPrefix PrimaryPrefix
[Name[ends-with(@Image, 'toLowerCase') or ends-with(@Image, 'toUpperCase')]]
[following-sibling::PrimarySuffix[position() = 1]/Arguments[@ArgumentCount=0]] [following-sibling::PrimarySuffix[position() = 1]/Arguments[@ArgumentCount=0]]
/Name[ends-with(@Image, 'toLowerCase') or ends-with(@Image, 'toUpperCase')]
or or
PrimarySuffix PrimarySuffix
[following-sibling::PrimarySuffix[position() = 1]/Arguments[@ArgumentCount=0]]
[ends-with(@Image, 'toLowerCase') or ends-with(@Image, 'toUpperCase')] [ends-with(@Image, 'toLowerCase') or ends-with(@Image, 'toUpperCase')]
[following-sibling::PrimarySuffix[position() = 1]/Arguments[@ArgumentCount=0]]
] ]
[not(PrimaryPrefix/Name[ends-with(@Image, 'toHexString')])]
]]> ]]>
</value> </value>
</property> </property>