It does not work for me, maybe I use wrong options? What I do is:

  • 1: run cloc:
    cloc.pl --by-file --exclude-dir=.svn,build --xml -out=build/cloc.xml mysourcedir
  • 2: run xsltproc using your example XML file:
    xsltproc sloccount.xsl build/cloc.xml
  • Result:
    compilation error: file /home/zoufala/Downloads/sloccount.xsl line 1 element stylesheet
    xsl:version: only 1.0 features are supported
    xmlXPathCompOpEval: function replace not found
    XPath error : Unregistered function
    xmlXPathCompiledEval: 2 objects left on the stack.
    runtime error: file /home/zoufala/Downloads/sloccount.xsl line 5 element variable
    Failed to evaluate the _expression_ of variable 'file_path'.
    This report has been generated by cloc 1.56.
    For more details see: http://cloc.sourceforge.net

Is there an obvious mistake in my usage?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to