Which should I use: preceding:: or preceding-sibling::?

后端 未结 3 495
深忆病人
深忆病人 2021-01-14 08:28

I\'m hesitating whether to write preceding or preceding-sibling in XSL such as an example xml below.


  

        
3条回答
  •  醉梦人生
    2021-01-14 09:05

    If you know exactly what is in your XML, you don't need any of these expressions, you could just write "Sato". You presumably need to navigate the XML because you know something about its structure but you don't have complete knowledge of its content. So the way you navigate it is by using what you know in order to discover what you don't know. This makes it impossible for us to help you, because you haven't told us how much of the XML is variable and how much is fixed.

提交回复
热议问题