【发布时间】:2017-11-22 07:31:41
【问题描述】:
希望在属性为路径的 xpath 中使用通配符,我想要所有以“文本”结尾的路径。
示例:<Property name="jcr:content/MainParsys/*/text"/>
-
jcr:content/MainParsys是常量。 -
*是我想要通配符的位置(中间的所有路径)。 -
text是我正在寻找的路径的最后一部分。
此外,我想避免以/textIsRich 结尾的路径。
寻找: <Property name="jcr:content/MainParsys/*/text"/>
避免: <Property name="jcr:content/MainParsys/*/text *"/>
【问题讨论】: