[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: possible nested loops
garry@xxxxxxxxxxxxxxxxxxx wrote:
I wonder if someone could point me in the right direction to solve myIt would help if we had a copy of your stylesheet (at least of what you have done) and some more information on the xml. ie an example snippet. By the language you are using, I suspect you have a fundamental lack of understanding of how XSLT works. There is no real concept of "iteration" in XSLT. Instead, what you do is use a template to find a match and do some action to this matching node. This action may include selecting values, storing values in a variable for later use, processing then selecting values or processing each child node or calling another template to process each child node. There are probably other operations that I have not included, but for simple conversion to HTML, this is probably only things you need to worry about. Have another look at some tutorials (the w3cschool tutorials are good for beginners). Pay close attention to <xsl:attribute>, <xsl:for-each> and <xsl:apply-templates>, I suspect that this is all you require to do what you need (assuming your data is well strucutred). Cheers. Kamal.
|
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
|