[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] forth and back
Hi; I'm experimenting with XSLT and SVG: http://www.pinkjuice.com/SVG/XSLT/fractals/ (those are working) Now I want to generate different colors for the levels; forth and back in an array of colors. The level can be set to any depth, and I don't want to just go from blue to yellow for a result with 2 levels as well as one with 10 levels; I'd rather have the colors go from blue to yellow to blue to yellow and so forth for the depth set in the input-doc ("up and down"). (the opacity of the levels goes one way from low to high for any depth; this works.) The result should look something like this: http://www.pinkjuice.com/temp/XSLT/color-levels.svg I tried to write two recursing templates: the first is called "forth"; red and blue are icremented, and green is decremented. The second one works the otherway round. One should start the other as soon as one of the values reached the limlit of either 0 or 255. Both should stop as soon as the set level of depth is reached. The current, crashing attempt is here: http://www.pinkjuice.com/temp/XSLT/colored-levels.xslt the input is http://www.pinkjuice.com/temp/XSLT/06.svg Any ideas? Tobi ===== Tobias Reif http://www.pinkjuice.com/myDigitalProfile.htm __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ 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
|