Hi All, I have a javascript variable something like:
var str = "AA,BB,CC,AA,BB,DD";
var totlength = str.split(",").length;
var xx = str.split(",");
for (var i = 0; i < totlength; i++) {
alert(xx[i]);
}
and I could print this value using above method.Now the problem is I have to craete one <ul><li>
structure using xslt and <li>
should get populated with this js values.
so the structure will be something like-
<ul>
<li>AA</li>
<li>BB</li>
<li>CC</li>
<li>AA</li>
</ul>
so the stucture will be in xslt and value will come from js, and i am writing this ina xslt file (no separate js file).How to achieve this.