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.
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 :)
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?
<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>
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
@nodeNameshould do the trick (provided the other tags are correctly cased, of course :)/Chriztian
Uhh, yes, that was the problem, it shouldnt be that hard.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.