0

我试过:

{ xs:integer($contentAssetProvider/text()) }

{ data($contentAssetProvider) cast as xs:integer? }

但得到

Error executing the XQuery transformation: Error parsing XML: {err}XP0021: "false": can not cast to {http://www.w3.org/2001/XMLSchema}integer: error: decimal: Invalid decimal value: unexpected char '102'

我会很感激任何意见。谢谢

4

1 回答 1

1

解决方法:{ xs:integer(xs:boolean(data($homepageAssetProvider))) }

于 2012-07-10T10:28:44.257 回答