我正在编写一个XSL转换。我想要编写一个模板,它匹配文档中除一个特定节点之外的所有子元素。我的xml看起来像这样-
<Document>
<NodeA></NodeA>
<NodeB></NodeB>
<ServiceNode></ServiceNode>
<NodeX></NodeX>
</Document>
我想写一个模板,匹配除ServiceNode
之外的所有节点,即NodeA
到NodeX
。如何编写此Xpath来获取-
<xsl:template match="ALL Nodex Except ServiceNode">
https://stackoverflow.com/questions/4859831
复制相似问题