在XSL中获得正确的信息

问题描述 投票:0回答:1

我在xsl中有此输入行:

<input type="text" id="CSEMissingInput" class="CSEMissingInput" onblur="SetSeriesAnswer(this)" placeholder="[[MManswerInputPlaceholder]]" **maxlength= "SCHEME/FIELD[@id='charactersLimitation']"**></input>

当我在maxlength中放入一个数字时,它很好用,但是当我得到真正需要的信息时,它就不起作用了。如何将该字符串转换为输入的数字内联?

xslt input maxlength
1个回答
0
投票

使用Attribute Value Template

maxlength= "{SCHEME/FIELD[@id='charactersLimitation']}"

为了将属性值字符串解释为XPath。

© www.soinside.com 2019 - 2024. All rights reserved.