[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Normalize / Simplify HTML-Tables with row-span / c
> Is it not possible for the processor to initially use RTFs > and then convert to a node-set internally when needed? > Excuse my naivety here, but it seems the obvious solution. It's certainly possible to use a variety of "lazy evaluation" strategies to ensure that the cost of building a tree is only incurred incrementally depending on the facilities that you actually use. It's also possible to use static analysis of the stylesheet to work out what capabilities are needed in advance. Saxon uses a little bit of both of these techniques, but there is scope for a lot more. For example, Saxon statically recognizes many of the cases where the tree will contain only a single text node, and uses a special data structure for that case. If I hadn't been so busy implementing new functionality for the last two years, then it would do a lot more of this kind of optimization by now! Certainly, I don't think there is any justification for imposing restrictions on the user-visible language in order to make implementations faster in this area. It's very rarely good design to do that. Michael Kay 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
|