[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: the "~" operator (was Re: Add id to next element)
> I'm not sure I want that ~ operator MORE than I want to be able to stuff XPath expressions into macros, but if there are votes, I would vote in favour of it. Ahh yes, while we're casting imaginary votes, I want that macro feature too. :) It is the feature I didn't know I wanted back when I asked this question: https://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/202201 /msg00000.html I basically wanted to be able to define a complex XPath expression somewhere once, then reuse it here and there as needed. In the end, I took Wendell and Eliot's advice to emulate a macro using a function and templates: https://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/202201 /msg00010.html https://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/202201 /msg00011.html but a macro capability would certainly be much more elegant! The function/template approach works, but is verbosely verbose. - Chris
|
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
|