Constructing X number of elements
Hi! How can I produce X number of elements in XSLT, where X is defined in an attribute of an element in the source XML file? For example (this isn't rally what I'm doing), I have this in the XML: <movie name="Alien" rating="3"/> And I'd like to produce as many stars as in the rating, like: <div> <img src="star.gif" alt=""/> <img src="star.gif" alt=""/> <img src="star.gif" alt=""/> </div> I suppose I can't do this with the for-each-construct. Please help, there has to be a way for doing this! :) If someone knows how to do this with Java and Xalan extension elements, it helps too. I just don't see how I could do this, because you can't actually "move" backwards in XSLT via Java extensions. If you have a solution, please help. Kind regards, Ilkka Hartikainen XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format