Copied to clipboard

Flag this post as spam?

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


  • Peter Alcock 113 posts 176 karma points
    Jun 18, 2012 @ 17:18
    Peter Alcock
    0

    XSLT Paging

    Hi all

    Been trying to get this for a while but can't quite get it!

    I have the following XSLT which displays all child nodes (in this case properties) under a location node. I basicakly just want to limit the number of preview boxes shown for each property.

    Hopefully makes sense!

    Heres my code, thanks all!

    <?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:ucomponents.strings="urn:ucomponents.strings"
      exclude-result-prefixes="msxml umbraco.library ucomponents.strings">
        <xsl:include href="../Property/Property.xslt"/>
        <xsl:include href="../Property/smallProperty.xslt"/>
       
      <xsl:param name="currentPage"/>
     <xsl:template match="/">
    <xsl:choose>
        <xsl:when test="$currentPage/ancestor-or-self::* [@isDoc]/threecol = 1">
    <xsl:call-template name="smallrenderproperties">
          <xsl:with-param name="smallcsvproperties" select="ucomponents.strings:Concat($currentPage//AProperty[string(umbracoNaviHide) != '1']/@id, ',')" />
        </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
    <xsl:call-template name="renderproperties">
          <xsl:with-param name="csvproperties" select="ucomponents.strings:Concat($currentPage//AProperty[string(umbracoNaviHide) != '1']/@id, ',')" />
        </xsl:call-template>
        </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jun 18, 2012 @ 19:01
    Jan Skovgaard
    0

    Hi Peter

    Could you also post the contents from the two included xslt files? I think that will make it a bit easier to figure out what is going on.

    Cheers,
    Jan 

  • Jignesh 31 posts 51 karma points
    Jun 19, 2012 @ 09:11
Please Sign in or register to post replies

Write your reply to:

Draft