Copied to clipboard

Flag this post as spam?

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


  • Peter Cort Larsen 421 posts 1038 karma points
    Oct 23, 2013 @ 20:26
    Peter Cort Larsen
    0

    Get member details

    Hi,

    Its been a while since i have used xslt, so i am a little rusty.
    Using ucom, i get a list of all members from a specific group.
    Then i get the details of each member also using a function from ucomponents.

    But i cant get  the 'Nodename' from the returned xml.

    Can anyone help?

    <!--<results><ansat id="1085" isdoc="" 
    email="[email protected]" loginname="initials" writername="admin" 
    updatedate="2013-10-23T14:17:15" nodename="My Name" 
    score="0.045070298"></ansat></results>-->
    <xsl:for-each select="ucomponents.members:GetMembersByGroupName('Ansatte')/member">
            <xsl:variable name="loginname" select="."/>
            <xsl:variable name="userDetails" select="ucomponents.members:Search($loginname, true)" />
            <xsl:value-of select="$userDetails/results/ansat/@nodename"/>
       <!--<results><ansat id="1085" isdoc="" email="[email protected]" loginname="initials" writername="admin" updatedate="2013-10-23T14:17:15" nodename="My Name" score="0.045070298"></ansat></results>-->
    </xsl:for-each>
  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Oct 23, 2013 @ 20:37
    Chriztian Steinmeier
    100

    Hi Peter,

    I think you've accidentally got the XML sample lowercased, so that's why you're not getting any results. (If you do copy-of in the XSLT visualizer, you need to wrap a Textarea around it; otherwise, it mangles the output.)

    Using @nodeName should do the trick (provided the other tags are correctly cased, of course :)

    /Chriztian

  • Peter Cort Larsen 421 posts 1038 karma points
    Oct 23, 2013 @ 20:52
    Peter Cort Larsen
    0

    Uhh, yes, that was the problem, it shouldnt be that hard.

     

Please Sign in or register to post replies

Write your reply to:

Draft