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

[TSVN] Re: xslt transforming TSVN log messages

From: Jens Scheidtmann <Jens.Scheidtmann_at_bayerbbs.com>
Date: 2005-08-01 14:30:23 CEST

Sven Brueggemann <SBrueggemann@gmx.net> writes:

> Jens Scheidtmann wrote:
>
>>> 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>.
>
>> You could also try <br></br>.
>
> My last sentence does not seem to be correct - I just tried it
> with a plain hand written html file. It's been three month ago
> that I last changed the stylesheet...
>
> IE and FireFox seem to render <br></br> as if it was <br><br>.

Hmm. This sounds like Quirks mode.

> And it seems that my xslt processor converts <br /> to <br></br>.

What processor do you use?
I would generate XHTML and use xml as output mode.

> Nevertheless - it didn't work and I chose a flavour of <br> as
> a makeshift because with my limited xslt knowledge I wasn't able
> to format the log message paragraphs into <p>paragraphs</p>.
>
> Can you give me a hint how to do that? I'd prefer
> <p>paragraphs</p> to be able to apply CSS styles to them.

Google is always your friend. Search for "xslt string split". Turns up
on first page:

http://www.biglist.com/lists/xsl-list/archives/200106/msg00215.html
http://www.biglist.com/lists/xsl-list/archives/200312/msg00303.html

Your only problem then will be to use the correct encoding for crlf.

Jens

-- 
Jens.Scheidtmann@bayerbbs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Aug 1 14:30:49 2005

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