# 一千萬個為什麽

## 在XSL節點選擇中基於屬性通配符排除節點



Message which isn't really a warning"









## 最佳答案

In the cruisecontrol XSL template the current selection for the task list is:




What I would like is something which selects the tasklist in the same way, but doesn't include any target nodes which have the attribute name="*weblogic" where * is a wildcard

Use:

  /cruisecontrol/build
//target
[not(substring(@name, string-length(@name)-7)
= 'weblogic'
)