Valid sitecore query - wrong xpath query
why does valid sitecore query:开发者_如何学C /sitecore/content/#My tree#/MyItems/*[contains(@@name, 'thename')] in xpath results to: Expression must evaluate to a node-set. Using sitecore developer center / xpath builder. Wanted to modify the query to use in code. Thanks,
This is a Sitecore Query, and isn't valid xpath. You can only use it in certain places within Sitecore (such as field sources) as well as within CodeBehind files.
There's a PDF document explaining it on the SDN
精彩评论