Line breaks in XSLT formatted code documentation (xml)

aminosgrp

New Member
Our WinForms based application takes documentation files that were generated by Visual Studio (Xml documentation), performs some XSLT transformation and displays the result in a WebBrowser control inside our form.Problem is, We cannot seem to get line breaks to be displayed, for example for tags in the xml documentation.For example:\[code\] <member name="T:Genesys.AgentLoginData"> <summary> This is some test summary <br /> New line here </summary> </member>\[/code\]When used with the XSL transformation, the summary text will be truncated into a single line.For simplification, the transformation does this for selecting the summary text:\[code\]<xsl:template match="member" ><xsl:value-of select="summary" disable-output-escaping="yes" /></xsl:template>\[/code\]How can we properly get new lines to be displayed in the WebBrowser control inside our application?EDIT: Adding the contents of"View Source" from the WebBrowser control. What i'm after is a new line after "This is a method", and so on.The browser simply displays that in a single line.\[code\]<?xml version="1.0" encoding="utf-8"?><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Action Help</title><style type="text/css"> p {text-indent:200px;} li {text-indent:180px;} h1 {color:navy;} h2 {color:blueviolet} h4 {color:navy;} </style></head><body><H2 xmlns="">AgentLogin</H2><H1 xmlns=""></H1><h3 xmlns=""> This is a method And its parameter Check this out name</P></body></html>\[/code\]
 
Back
Top