S
S
Sebastian Pereira2014-03-14 10:28:47
XSL & XSLT
Sebastian Pereira, 2014-03-14 10:28:47

XSLT (umi) - how to display fields in your personal account?

Hello. Tell me how to use xslt to display any field (which I specify) for the current user.
Tried with uobject

<xsl:value-of select="document('uobject://@id.moe_svoictvo')//value" />

But it works only if I specify a specific @user id (for example, 22).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
i, 2014-04-22
@ilyarsoftware

<xsl:value-of select="document(concat('uobject://', /result/user/@id, '.moe_svoictvo'))//value"/>

or otherwise, but in order for it to work, you need to add xmlns:xlink=" www.w3.org/TR/xlink " to the stylesheet
<xsl:value-of select="document(concat(/result/user/@xlink:href, '.moe_svoictvo'))//value"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question