ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
Re: [xsl] Measuring the complexity of XSLT stylesheets
by Mukul Gandhi other posts by this author
Apr 17 2005 6:23PM messages near this date
Re: [xsl] xsl sort: using element attribute as sort key! | [xsl] xsl sort: using element attribute as sort key!
& XSLT You may also explore Saxon's Performance Analysis
features. It allows you to generate tabular HTML
report of stylesheet execution time.

Following is a description of "Saxon Performance
Analysis" from its documentation.

"The output identifies instructions in the original
stylesheet by their name, line number, and the last
few characters of the URI of their module. For each
instruction it gives the number of times the
instruction was executed, the average time in
milliseconds of each execution, and the total time.
The table is sorted according to a weighting function
that attempts to put the dominant instructions at the
top."

I have tried this feature and have found it quite
useful.

I believe comparing the performance analysis reports
of different XSLT transformations using Saxon, will
help you to compare the complexity of the
stylesheets..

Regards,
Mukul

--- Lars Marius Garshol <larsga@[...].no> 
wrote:
>  
>  I'm writing a paper where I'm evaluating different
>  XML vocabularies
>  for expressing the same information, and one of my
>  evaluation criteria
>  is how easily the resulting XML can be processed
>  with XSLT. At the
>  moment the paper contains only prose with a
>  subjective appraisal of
>  the various approaches. This is fine, as far as it
>  goes, but it would
>  be nice to have something more objective to back it
>  up with. Are there
>  any established criteria for evaluating the
>  complexity of XSLT
>  stylesheets?
>  
>  There are some obvious criteria I could think of,
>  like:
>  
>   - size of stylesheet in bytes, lines, and XML
>  elements+attributes,
>  
>   - number of elements from the XSLT namespace, and
>  
>   - combined length (in characters) of XPath
>  expressions.
>  
>  I think these criteria would work, but I'm not
>  convinced that they
>  really capture complexity directly. Can anyone
>  suggest better
>  alternatives?
>  
>  -- 
>  Lars Marius Garshol, Ontopian         <URL:
>  http://www.ontopia.net >
>  GSM: +47 98 21 55 50                  <URL:
>  http://www.garshol.priv.no >
>  
>  
> 
--~------------------------------------------------------------------
>  XSL-List info and archive: 
>  http://www.mulberrytech.com/xsl/xsl-list
>  To unsubscribe, go to:
>  http://lists.mulberrytech.com/xsl-list/
>  or e-mail:
>  <mailto:xsl-list-unsubscribe@[...].com>
>  --~--
>  
>  


		
__________________________________ 
Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@[...].com> 
--~--

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved