[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: iteration... please help
Jon, this seems to be an XSLT and MSXML question. These questions are not appropriate for this list. I would be happy to help, and will follow up with you off-list. -Wayne Steele >From: "Lord, Jon" <jlord@t...> >To: "'xml-dev@l...'" <xml-dev@l...> >Subject: iteration... please help >Date: Thu, 09 Nov 2000 07:37:37 -0700 > >Hi, > >please forgive my possibly stupid request, but having rtfm and several >others I am getting nowhere with a small problem. > >I am creating a hierarchy tree and want to create the "tree" structure with >.gifs. > >I need to add a series of images to the beginning of each line - the number >of which is dependent upon the lines position in the tree. So for example, >a >node at the fourth level has 4 preceeding images, and a node at the 104th >has 104. > >Has anybody solved a similar problem? I have the text output from an >xsl:eval that loops correctly: > > function writeImages() > { > var imgString = ""; > e++; > for (j=0; j<e; j++){ > imgString = imgString + "<IMG >src='/scb.dev/images/bullets/treeline.gif'>"; > } > return imgString; > } > >...but only outputs text not mark-up. > >I am starting to tear my hair out now as I don't want to have to hard code >an xsl:choose. > >I would sincerely appreciate any help. > >regards > >Jon Lord _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
|
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
|