Monday, January 30, 2012 6:10 PM
When you show self-branded content in the Help Viewer 1.1, any <br/> tags are transformed by the branding package into <br></br> so you end up with an extra blank line in the displayed content.
I tracked down the reason for this in Dev10.mshc.
In Identity.xslt the pass-through transform looks like this:
<xsl:if test="not(*) and not(text()) and not(self::xhtml:br) and not(self::xhtml:hr)"> <xsl:value-of select="' '" /> </xsl:if >
and that works fine:
However, in body.xslt (match="*|/" mode="self-branding") there is a second passthrough transform like this:
<xsl:if test="not(*) and not(text())"> <xsl:value-of select="' '"/> </xsl:if>
and that just messes up self-branded content.
Does anybody know a work-around for this????
- Edited by Don Fehr Monday, January 30, 2012 6:18 PM
Tuesday, March 20, 2012 9:24 PMModerator
Hello Don - unfortunately, I'm unaware of a workaround for this in VS 2010/Help Viewer 1.x.
In VS 11/Help Viewer 2.0, we are explicitly leaving any code markup alone except for link references when SelfBranded=true. We just verified this scenario.
Paul O'Rear, Microsoft Corporation http://blogs.msdn.com/TheHelpGuy