我一直无法找到任何有关此的信息,可能是由于我没有掌握术语。我想要做的是为货币创建一个模板元素(已经有),并在两个地方使用两个不同的名称(即currentBalance和maxBalance)使用它。
我当前的模板格式为:
<xsd:element name="currency">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:double">
<xsd:attribute ref="currencyCode" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
Run Code Online (Sandbox Code Playgroud) 我是XSLT的新手,只需要抓取XML值的最后一个字母,然后将该字符添加到我的HTML输出中.