$binding-path 包含类似的东西Contact!ShowsInterest
应该转换为Contact/@ShowsInterest
这是我到目前为止所尝试的:
<xsl:variable name="bindpath" select="translate($binding-path, '!','/@')" />
<xsl:value-of select="concat('{Binding XPath=',$bindpath,'}')"/>
或者
<xsl:variable name="bindpath" select="translate($binding-path, '!','/@')" />
<xsl:value-of select="concat('{Binding XPath=',$bindpath,'}')"/>
但无论我尝试什么,结果总是Contact/ShowsInterest