Needed to add a table of my svn log into my project write up so created a simple style sheet that would parse the xml output from svn. The xslt only generates the table
svnlog-gen.sh
#usage svnlog-gen.sh [repo-path] [output-file]
svn log --xml $1 > tmp.out; xsltproc svnlog.xslt tmp.out > $2; rm tmp.out
svnlog.xsltExample Output
This is exactly what I needed! Thank you very much!!!
ReplyDeleteWhat Markus said.
ReplyDeleteYou should be able to avoid the temp file with a pipe, viz:
svn log --xml $1 | xsltproc svnlog.xslt > $2