Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew Blackmore 84 posts 127 karma points
    Feb 02, 2010 @ 22:06
    Andrew Blackmore
    0

    Error reading XSLT file

    umbraco v 4.0.3

    asp.NET 2.0

    Windows Server 2003

    IIS 6

    I've seen lots of posts with errors stating Error parsing XSLT file, but not one that seems related. I am working with blog4Umbraco and I altered my blogroll.xslt file. I wanted to include more parameters (an image) and replaced the BlogBlogroll.xslt file and not it says its not found! Not sure what I did wrong but here is the part of the file I changed:

    [code]

        <ul>
          <xsl:for-each select="$currentPage/data [@alias = $propertyAlias]/links/link">
            <li><a href="{umbraco.library:NiceUrl(./@link)}" target="_blank">
              <img src="{./@image}" />
                <xsl:value-of select="./@name"/>
              </a>
            </li>
          </xsl:for-each>
        </ul>

    [/code]

    If I've done something stupid and obvious, I apologize. I'm new to Umbraco and xslt but i read the intro to xslt and it seems intuitive enough that I gave it a shot. Thanks in advance for any pointers.

  • Andrew Blackmore 84 posts 127 karma points
    Feb 02, 2010 @ 22:10
    Andrew Blackmore
    0

    Sorry about that here is the correct code.

        <ul>
    <xsl:for-each select="$currentPage/data [@alias = $propertyAlias]/links/link">
    <li><a href="{umbraco.library:NiceUrl(./@link)}" target="_blank">
    <img src="{./@image}" />
    <xsl:value-of select="./@name"/>
    </a>
    </li>
    </xsl:for-each>
    </ul>
  • Andrew Blackmore 84 posts 127 karma points
    Feb 04, 2010 @ 21:36
    Andrew Blackmore
    0

    OK, so I was able to get rid of the error. For some reason though, when I started using my "Super Blog Roll" datatype with the Repeatable Custom Content v2 render control, it is not sending the data into this. This may come from a complete lack of experience with Umbraco, but I'm a bit stuck. I made sure the alias' matched the names in the code and still nothing. I think it is coming from what i have in the second line of this code or the sixth line...

        <!-- The fun starts here -->
    <xsl:if test="count($currentPage/ancestor-or-self::node [@nodeTypeAlias = 'Blog']/data [@alias = $propertyAlias]/links/link) &gt; 0">
    <li id="linkcat-2" class="linkcat">
    <h3>Blogroll</h3>

    <ul>
    <xsl:for-each select="$currentPage/ancestor-or-self::node [@nodeTypeAlias = 'Blog']/data [@alias = $propertyAlias]/links/link">
    <li>
    <a href="{umbraco.library:NiceUrl(./@link)}" target="_parent">
    <xsl:attribute name="target">_parent</xsl:attribute>
    <xsl:value-of select="./@title"/>
    <xsl:value-of select="./@image" />
    </a>
    </li>
    </xsl:for-each>
    </ul>

    </li>
    </xsl:if>

    any ideas?

     

    Thanks again.

Please Sign in or register to post replies

Write your reply to:

Draft