Return to Snippet

Revision: 14326
at May 29, 2009 17:01 by nitehawk


Initial Code
<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:param name="issue" select="'valuenotentered'"/>
<xsl:output method="text"/>
<xsl:strip-space elements="*"/>

<xsl:template match="log/logentry">
</xsl:template>

<xsl:template match="log/logentry[contains(msg, $issue)]">
    <xsl:value-of select="@revision"/>
    <xsl:text> </xsl:text>
</xsl:template>

</xsl:stylesheet>

Initial URL

                                

Initial Description
I use this to scan an entire repository for an issue number and print out all of the revisions that reference it.

XSLT is far faster now then it was in the old days. Xalan (not known as the fastest engine) can run this on my 10mb log file in under 2 seconds.

Initial Title
pull out svn revisions from log xml using xslt

Initial Tags
svn

Initial Language
SVN