Hello everybody,
I need to show on a news file the link of a xml file made with WPC to itself.
I used this code, which works perfect:
<xsl:if test="@type='relatedLinks'">
<div>Reed more:<a>
<xsl:attribute name="href">
<xsl:value-of disable-output-escaping="yes" select="wpc:getAccessLink(string(@rid), string(/document/@locale))"/>
</xsl:attribute>
<xsl:value-of disable-output-escaping="yes" select="@title"/>
</a></div>
</xsl:if>
And the result is a nice text with this link:
http://xxxxxxx:50000/irj/servlet/prt/portal/prtroot/docs/guid/2052d9da-e059-2b10-1788-c14c4d260688
So, I tought that I could you the same logic for another text, and I wrote this:
<a>
<xsl:attribute name="href">
<xsl:value-of disable-output-escaping="yes" select="wpc:getAccessLink(string(@rid), string(/document/@locale))"/>
</xsl:attribute>
<xsl:value-of disable-output-escaping="yes" select="document/elements/element[@type='title']" /> </a>
<xsl:if test="document/properties/property[@type='displayNewIcon']/@value='true'">
<span class="new" valign="top"><xsl:value-of disable-output-escaping="yes" select="wpc:getString('xsl.xmsg.new', string(document/@locale))"/></span>
</xsl:if>
The problem is that the link is not complete, it shows only the first part, like this:
http://xxxxxxx:50000/irj/servlet/prt/portal/prtroot/ ...????
Both logics are written in the same .xsl file I use for the layout of a Web form I did with [this guide|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2041eb17-6001-2b10-b08d-b95ce55fa9b7]
Could someone please help me?
Thanks!
Demis