[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: function-available() test on stylesheet functions
I'm trying to optimize a code reuse without duplication situation here.
My current solution, is using saxon:evaluate() to call the potentially unavailable function inside of a conditional that checks function-available. I'm considering doing something different utilizing import precedence to control what gets used when. My only problem with that is it causes me to go in a different direction with how my XSL is stored and executed. I'm using middleware to generate most of the xsl, so I'm not really using import or include that much, because I don't really have anything sitting out on the filesystem. It seems like the only way to define duplicate functions, will be to define them at different import levels, which will force me to do some re-architecting. In the long run I think it's what I want though. /John On 7/18/07, Michael Kay <mike@xxxxxxxxxxxx> wrote: The assumption is that as the author of the stylesheet, you know what it contains. -- /John
|
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
|