Check type of node in XSL template

后端 未结 3 1829
忘掉有多难
忘掉有多难 2020-12-10 15:35

Is it possible to check the type of a node I matched with a template inside the same template? In case it is, how can I do it? For example I would like to do something like

3条回答
  •  时光取名叫无心
    2020-12-10 16:00

    I highly recommend you to use the expressions on sequence types introduced in XPath 2.0. For example:

    . instance of document-node()
    . instance of element()
    

提交回复
热议问题