I have to display a <div> data in a loop in XSL.But the below code is not working. Please help.

  <script>    
    i=3;
        for(i=0;i <xsl:text disable-output-escaping="yes">&lt;</xsl:text> count;i++)
         {

               </script>              
                div style="float:left;background-color:#D3D3D3;width:100">test</div> 
                <script>               
         }              
   </script>

Recommended Answers

All 3 Replies

Would you care to explain what it is you're trying to do? Are you trying to use a JavaScript function to output HTML divs using an XSL stylesheet?

I want to display the <div> iteratively. For that i gave a for loop in javascript

did you declare your going to use javascript in the code? like:

<script language="javascript">
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.