This project has moved and is read-only. For the latest updates, please go here.

List class="nobullet" in vs2010 presentation style

Topics: Developer Forum
Jan 11, 2013 at 10:08 PM
Edited Jan 11, 2013 at 10:10 PM

Hello all!

I'm using the vs2010 presentation style, and when trying to create conceptual content, I'm creating a list with class="nobullet". However, no matter what I've tried, it always shows with bullets. I've switched the style to hana and Prototype, and both of those are handling it as I would expect. Is this not supported for this presentation style? Based on my limited understanding of the XSL transforms, it seems like it would be, but maybe I'm missing something.



Jan 11, 2013 at 11:19 PM
Edited Jan 11, 2013 at 11:25 PM

Ignore my last response.  I forgot to change the presentation style.  It isn't working so I'll look into it.



Jan 12, 2013 at 3:02 AM

It's another case where the branding transformations are getting in the way.  There are a couple of templates in Presentation\VS2010\Branding\ps-body.xslt that strip out styles and let some through.  Its was probably intended for non-self-branded content but is currently active for self-branded content.  Commenting out the two following templates or deleting them lets the style attributes on the lists work as expected:

<!-- ============================================================================================
Generic transforms (see Identity.xslt for others)
============================================================================================= -->

<!-- strip style attributes by default -->
<xsl:template match="@style[translate(.,' ;','')!='display:none' and translate(.,' ;','')!='display:inline']"

<!-- pass through styles for p and h elements -->
<xsl:template match="//xhtml:p[@style]|xhtml:h1[@style]|xhtml:h2[@style]|xhtml:h3[@style]|xhtml:h4[@style]|xhtml:h5[@style]|xhtml:h6[@style]"
    <xsl:apply-templates select="@*"/>
    <xsl:attribute name="style">
      <xsl:value-of select="@style"/>



Jan 27, 2013 at 5:01 AM

Just getting back to this now... works perfectly with those sections of the XSLT commented out. Thanks, Eric!