Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: XSLTExtensionBase.cs

  1. #1
    bonannjn is offline Junior Member
    Join Date
    Nov 2011
    Posts
    8

    Wink XSLTExtensionBase.cs

    Hello,

    I'm in the process of trying to integrate rich snippets into my site.

    The first part of my question is... any idea where XSLTExtensionBase.cs is? I need to fit some properties into the <img> tag and the XLS is apparently using this class to build the tag. I've already modified part of product.VariantsInTableCondensed.xml.config but this image part is hanging me up.

    The second part of my question is... and this is more of something that I'd probably have better luck with in the Google forums... is with regard to the Rich Snippet testing tool: http://www.google.com/webmasters/tools/richsnippets. It recognizes that I have schema on my page but refuses to show me a preview of what my product would look like in the SERPs.. Anyone else have something similar occur?

    Thanks in advance!
    Justin

  2. #2
    bonannjn is offline Junior Member
    Join Date
    Nov 2011
    Posts
    8

    Cool

    Welp... found a hack for this...

    In product.VariantsInTableCondensed.xml I concatenated the itemprop="image" into the parameter as such:

    <xsl:param name="AltText">
    <xsl:choose>
    <xsl:when test="$pSEAltText=''"><xsl:value-of select="concat($pName, ' &quot; itemprop=&quot;image')" /></xsl:when>
    <xsl:otherwise><xsl:value-of select="concat($pName, ' &quot; itemprop=&quot;image')" /></xsl:otherwise>
    </xsl:choose>
    </xsl:param>

    It ain't pretty - but required no compiling of the source code. Hope this helps anybody trying to get rich snippets on their site!