Copied to clipboard

Flag this post as spam?

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


  • Axel 68 posts 96 karma points
    Jun 18, 2015 @ 19:17
    Axel
    0

    Move XSLT to usercontrol (webforms)

    Hi, with the following xslt code i display content on a page (iam use webforms) but i have to show a usercontrol but i have read this not working on xslt. there will be no code behind executable. so i need to translate the following code to my usercontrol . how did i done this show the same data with an asp.net repeater on my custom control as the following xslt? axel

            <xsl:for-each select="$currentPage/* [@isDoc and string(umbracoNaviHide) != '1']">
    
    
    
                                   <xsl:sort select="@level" order="ascending" />
    
                                   <tr>
    
                                               <td class="css1">
    
                                                           date
    
                                               </td>
    
                                               <td class="css1">
    
                                                          text 1
    
                                               </td>
    
                                               <td class="css1">
    
                                                           text 2
    
                                               </td>
    
                                               <td class="css1">
    
                                                           text 3
    
                                               </td>
    
                                   </tr>
    
                                   <tr>
    
                                               <td class="css1"> rowspan="3" style="">
    
                                               <xsl:value-of select="@nodeName"/>
    
                                               </td>
    
                                               <td class="css1">
    
                                               <xsl:value-of select="umbraco.library:ReplaceLineBreaks(text1)" disable-output-escaping="yes"/>
    
                                                           <p style="font-size:12px;">
    
                                                                       <xsl:value-of select="umbraco.library:ReplaceLineBreaks(text1a)" disable-output-escaping="yes"/>
    
                                                           </p>
    
                                               </td>
    
                                               <td class="css1">
    
                                               <xsl:value-of select="umbraco.library:ReplaceLineBreaks(text2)" disable-output-escaping="yes"/>
    
                                                           <p style="font-size:12px;">
    
                                                                       <xsl:value-of select="umbraco.library:ReplaceLineBreaks(text2a)" disable-output-escaping="yes"/>
    
                                                           </p>
    
                                               </td>
    
                                               <td class="css2">
    
                                               <xsl:value-of select="umbraco.library:ReplaceLineBreaks(text3)" disable-output-escaping="yes"/>
    
                                                           <p style="font-size:12px;">
    
                                                                       <xsl:value-of select="umbraco.library:ReplaceLineBreaks(text3a)" disable-output-escaping="yes"/>
    
                                                           </p>
    
                                               </td>
    
                                   </tr>
    
                                   <tr>
    
    
    
                                   <tr>
    
    
    
                                   <tr>
    
                                               <xsl:value-of 
    
                                                           select="umbraco.library:RenderMacroContent('&lt;?UMBRACO_MACRO macroAlias=&quot;MYMACRO&quot; &gt;&lt;/?UMBRACO_MACRO&gt;', $currentPage/@id)" disable-output-escaping="yes"/>
    
                                   </tr>
    
                        </xsl:for-each>
    

Please Sign in or register to post replies

Write your reply to:

Draft