Copied to clipboard

Flag this post as spam?

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


  • dominik 711 posts 733 karma points
    Jul 26, 2012 @ 16:45
    dominik
    0

    xslt to razor question

    Hello,

    I am trying to change some of my xslt scripts to razor

    how can i get this running in razor?

    <xsl:for-each select="$currentPage/ancestor-or-self::* [@level = 1]//tagCloudItems/items/item">

  • Ernst Utvik 123 posts 235 karma points
    Jul 29, 2012 @ 11:39
    Ernst Utvik
    0

    Something along these lines?

    @foreach (var item in Model.AncestorOrSelf().DescendantsOrSelf("tagCloudItems").DescendantOrSelf("items").items)
    {
    @item.Name
Please Sign in or register to post replies

Write your reply to:

Draft