[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[TSVN] xslt transforming TSVN log messages

From: Sven Brueggemann <SBrueggemann_at_gmx.net>
Date: 2005-07-28 19:14:52 CEST

Hello,

this is actually a xslt question, but since this problem only
occurs to me with xml files generated by svn log --xml and
especially with the log messages TSVN generates, I hope
someone has solved it before.

Log messages entered in TSVN are automagically word wrapped
(indicated by a carriage-return symbol at the end of the line),
so pressing enter is only necessary when dividing paragraphs.

When exporting the logs with svn log -v -xml, the paragraphs
in the log messages (tag "msg") are divided by 0x0D 0x0A.

I have trouble transforming these log messages to html via
xslt. I can't put the contents of <msg> into a <pre> tag -
this leads to one (very long) paragraph per line. I can't
translate crlf to a <br>, because that would make the xslt
document not-well-formed. Tranlating it to <br /> is no
option - browsers seem to interpret that as <br><br>.

I'd like to make a <p>Paragraph</p> out of every paragraph
in the log message, but my xslt knowledge is limited - any
hints how to do that are appreciated.

Kind regards

Sven

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jul 28 19:15:04 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.