Subject: [xsl] forth and back From: Tobias Reif <tobiasreif@xxxxxxxxx> Date: Sat, 21 Apr 2001 12:38:15 -0700 (PDT) |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] textarea bug?, David Carlisle | Thread | Re: [xsl] forth and back, Jeni Tennison |
Re: [xsl] union/intersection on att, Dan Diebolt | Date | Re: [xsl] Converting a string to no, Jeni Tennison |
Month |