Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <xsl:template name="ListeActualites" match="Row[@Style='ListeActualites']" mode="itemstyle">
  2. <xsl:param name="CurPos" />
  3. <xsl:param name="Last" />
  4.  
  5. <xsl:variable name="SafeLinkUrl">
  6. <xsl:call-template name="OuterTemplate.GetSafeLink">
  7. <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
  8. </xsl:call-template>
  9. </xsl:variable>
  10. <xsl:variable name="Image">
  11. <xsl:value-of select="substring-before(substring-after(@Image, 'src="'), '" style')" />
  12. </xsl:variable>
  13.  
  14. <xsl:variable name="debutBloc">
  15. <xsl:if test="$CurPos = 1">
  16. <![CDATA[
  17. <div class="test">
  18. ]]>
  19. </xsl:if>
  20. </xsl:variable>
  21. <xsl:variable name="finBloc">
  22. <xsl:if test="$CurPos = $Last">
  23. <![CDATA[
  24. </div>
  25. ]]>
  26. </xsl:if>
  27. </xsl:variable>
  28.  
  29. <xsl:value-of select="$debutBloc" disable-output-escaping="yes" />
  30. <!-- Content here -->
  31. <xsl:value-of select="$finBloc" disable-output-escaping="yes" />
  32.  
  33. </xsl:template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement