我能否将一个节点发送给XSLT函数?例如:
<books>
<book>
<author>a1</author>
<price>10</price>
<year>2009</year>
</book>
<!-- ... -->
</books>
我能否将<book>
元素发送到一个函数中 - 在该函数内,我想处理 book 下的节点 (<author>
、<price>
或 <year>
)
我能否创建如下的 xsl:function?
<xsl:function name="util:checkNode" as="xs:boolean">
<!-- I would like to know xml schema data type for the param -->
<xsl:param name="nodeP" as="****"/>
</xsl:function
If yes, what xsl schema type to the param ?
看起来我在说函数时使用了 function 而不是 xsl:function,这给大家带来了很多困惑 :(