Copied to clipboard

Flag this post as spam?

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


  • Michael Jensen 29 posts 98 karma points
    Dec 17, 2017 @ 20:31
    Michael Jensen
    0

    Coment macro problem

    Hey,

    Can some one tell mig what it is iam getting wrong in this macro.

    I get this error on the page "Error reading XSLT file: Udtag.xsltUdtag.xslt

    what is it iam trying to get it to do is act lig on this page.. http://solutionstomassconfusion.dk that is the HTML version off what aim trying to do.

    Systeminformation:

    Umbraco version 7.7.7 assembly: 1.0.6554.23584

    this is my setup in the template

        @section udtagelser{
        <!-- section start -->
            <!-- ================ -->
            <div class="testimonial">
                <div class="container">
                    <div class="row">
                        @Umbraco.RenderMacro("UdtagelseSlider", new {nodeId="umb://document/3745d7ef386742dcad6393691767100f"})
                    </div>
                </div>
            </div>
            <!-- section end -->
        }       
    

    This is my macro.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet 
        version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
        xmlns:msxml="urn:schemas-microsoft-com:xslt" 
        xmlns:umbraco.library="urn:umbraco.library" xmlns:Examine="urn:Examine" 
        exclude-result-prefixes="msxml umbraco.library Examine ">
    
    <xsl:output method="xml" omit-xml-declaration="yes" />
    
    <xsl:param name="currentPage"/>
    
    <!-- Don't change this, but add a 'contentPicker' element to -->
    <!-- your macro with an alias named 'source' -->
    <xsl:variable name="source" select="/macro/source"/>
    
    <xsl:template match="/">
    
    <!-- The fun starts here -->
    
        <ul>
    <xsl:for-each select="umbraco.library:GetXmlNodeById($source)/* [@isDoc and string(umbracoNaviHide) != '1']">
        <li>
            <div class="col-md-8 col-md-offset-2">
                    <h2 class="title"><xsl:value-of select="UdtagelseOoverskrift"/></h2>
                        <div class="testimonial-image">
                            <img src="images/testimonial-3.jpg" alt="Jane Doe" title="Jane Doe" class="img-circle">
                        </div>
                        <div class="testimonial-body">
                            <p><xsl:value-of select="UdtagelseUdtagelsen"/></p>
                            <div class="testimonial-info-1">- <xsl:value-of select="udtagelseUdtaler"/></div>
                            <div class="testimonial-info-2"><xsl:value-of select="udtagelsePrivatFirma"/></div>
                        </div>
                    </div>
        </li>
    </xsl:for-each>
    </ul>
    
    </xsl:template>
    
    </xsl:stylesheet>
    
Please Sign in or register to post replies

Write your reply to:

Draft