passen Was XPath-Ausdruck sein wird, den Kontext-param mit param-name foo entsprechen, wie unten dargestellt:XPATH Ausdruck context-param in web.xml
<web-app>
<context-param>
<param-name>foo</param-name>
<param-value>bar</param-value>
<description></description>
</context-param>
.....
</web-app>
Sie müssen das "/" aus '[/ param-name = 'foo']' entfernen, damit alles zurückgegeben wird. (sollte sein '/ web-app/context-param [param-name = 'foo']') –
Ja, tue ich nicht I. Fixed. –
Unter Berücksichtigung des Namensraumproblems endete ich mit '// * [local-name() = 'kontext-param'] [* [local-name() = 'param-name'] = 'foo']' ' – eigil