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

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -