I have a loop in xls and depending on the attribute value, I have to write some text.
The XML is as follows:
& lt; ROWS & gt; ROW OID = "28439" & gt; EFL EID = "8" FID = "27672" count = "2" & gt; & Lt; MK id = "3" val = "0" /> & Lt; MK id = "11" val = "0578678" /> & Lt; / Row & gt; & Lt; / Rows & gt; The XSL is as follows:
& lt; Xsl: each selection = "EFL / Mk" & gt; & Lt; Xsl: Select the value = "@ id" />: & lt; Xsl: Select Value = "@well" /> & Lt; / XSL: for-each & gt; I have to have the following output:
3: 0 and 11: 057868
"& amp; / Strong> If there are more than one " Mk " tag, the " calculation " attribute of the "Mk" tag is calculated by the counting " line " tag Available in
Can you please tell me how to keep the following situation in the XSL:
If the calculated attribute is available in Row tags Strong> is more than 1 value, then "& amp; asif
thanks
try this code:
& lt; Xsl: each selection = "EFL / Mk" & gt; & Lt; Xsl: Select the value = "@ id" />: & lt; Xsl: Select Value = "@well" /> & Lt; Xsl: if test = "../@ calculation1 1" & gt; & Lt; Xsl: if test = "no (condition () = last ())" & gt; & Lt ;! [CDATA [& amp; ]] & Gt; & Lt; / XSL: If & gt; & Lt; / XSL: If & gt; & Lt; / XSL: for-each & gt;
Comments
Post a Comment