Subject: RE: What is XSLT? ( very long ) From: "Kaganovich, Yevgeniy (Eugene)" <ykaganovich@xxxxxxxxxxx> Date: Tue, 8 Aug 2000 12:55:30 -0700 |
Hi, I haven't formed an opinion on Paul's view yet, but I think it's interesting to consider what other kinds of processor optimization hints could be defined. If, as Paul says, we regard XSLT as a highly optimizable language with by-value data interchange, much thought needs to be given to compiler optimizations, analogous to defining indices and query plans in databases. If key is considered one type of such hint, it would be an equivalent of a non-unique index. Other hints I can think of (I'm not in a position to tell which would are feasible or would actually result in any performance improvements) would be: - UNIQUE -- Specifies that there should not be duplicate nodes in a nodeset. Node equivalence should be described (similar to overriding equals() ) - ORDERED -- indicate if the nodes in a nodeset are sorted by a specific ordering. Node comparison should be described (similar to overriding compare() ) - UNUSED -- ignore a nodeset completely while constructing the OM, it is not used in transformation. - DISCARD-AFTER-USE -- nodeset is only used by one template, can be discarded from the OM after usage. The last two are particularly important because they could perform "simple" transformations on streaming XML data. Some of these are somewhat dangerous because they are actually assertions that would cause the transformation to break should the data not satisfy them, which is not exactly the same thing as a hint... Don't know how this fits into the trax initiative... Is there a way to do this in compiler-indenpendent fasion? Is there a way to do it at all? Does this make any sense at all? Comments welcome. Thanks, - Eugene XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: What is XSLT? ( very long ), Paul Tchistopolskii | Thread | RE: What is XSLT? ( very long ), Thorbjorn Ravn Ander |
Transform results munged in Mozilla, Eric Costello | Date | Re: Testing for CDATA, Mike Brown |
Month |