[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: metrics for evaluating xsl-t?
On 8/23/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > Wondering if anyone has given any thought to a metrics for > evaluating > > the complexity of a stylesheet based solution? can be XSL-T > 2.0 only. > > IMHO it depends on your definition for complexity.
Things I might assume to apply: Number of includes, imports.. Reuse, overriding of templates.. use of apply-templates vs. apply-templates select.. number of modes, number of priority
I've never been sure how useful such metrics are.
At higher levels such metrics can turn into recommendations for transformation structure to particular types of tasks or for applications needing to handle large numbers of input or output formats. An example rule at a high level can be: Put named templates into a named template xsl for import. override as needed. Thus if one has a named template not an override of a named template in the named templates xsl flag stylesheet for checking by top level transformation maintainer - that would be you, Michael - and so forth. complexity is probably one of the top things we want to reduce in an application, thus we need a metric to identify at least possible complexity in order to automate checking for it. I have made some preliminary things in this direction but was hoping others had some stuff as I always feels somewhat uncomfortable making an argument without seeing what other opinions are on the matter, since what I perceive as important can on consideration turn out only to be based on personal preference. Cheers, Bryan
|
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
|