I have a dataset called <testData> with many nodes inside.
How to determine if a node exists or not?
I tried
<xsl:if test="/testData">
and
<xsl:if test="../testData">
None of them work. I am sure it is possible, but I do not know how to do it .: P
In the context of XML, the file is as follows
<overall> <body/> <state/> <data/>(the one I want access to </overall>
I am now in the <body> , although I would like to access it all over the world. Should /overall/data work?
Edit 2: Right now I have an index in the data that I need to use anytime when you apply templates to tags inside the body. How can I say while in the body this data exists? Sometimes this happens, sometimes it is not. I canβt control it. :)
source share