xslt 1.0 - navigating to a particular block in xsl upon certain conditions -
I have a condition in XSL where I have to read the data if the sert name is gfrt and its value is TTT Please advise that Xls: if it will be tagged for.
I went this way ...
& lt; Xsl: if test = "./@name = $ gfrt" & gt; & Lt; / XSL: If & gt;
try it
& lt; Xsl: template match = "sert" & gt; & Lt; Xsl: if test = "@name = 'gfrt' and. = 'TTT'" & gt; Do something here ... & lt; / Xsl: if & gt; & Lt; / XSL: Templates & gt; or
& lt; Xsl: template match = "abcData" & gt; & Lt; Xsl: each-select = "cert" & gt; & Lt; Xsl: if test = "@name = 'gfrt' and. = 'TTT'" & gt; Do something here ... & lt; / Xsl: if & gt; & Lt; / XSL: for-each & gt; & Lt; / XSL: Templates & gt; It depends on the context in which context you are in.
Comments
Post a Comment