> DNU home > online course > Portal Overview page 43
Novell Portal Services Overview and Gadget Development
April 2003
DeveloperNet University Course
Reader Rating    from ratings rate this article
View an eBook Version of this course - LARGE FILE! Send this page to a friend

Solution-main.xsl

The changes required are as follows:

  1. Code fill:


<td valign="top">The Current DN is: <!-- TODO(1) relevant XSL selection here -->
</td>

Solution:


<td valign="top">The Current DN is: <xsl:value-of select="@CURRENT_DN"/>
</td>

  1. Code fill:


<!-- TODO(2) loop around each LDAP_OBJECT -->

Solution:


<xsl:for-each select="LDAP_OBJECT">

  1. Code fill:


<xsl:attribute name="href">portalservice?GI_ID=<xsl:value-of
select="../../@id"/>&amp;CURRENT_DN=<!-- TODO(3) select CURRENT_DN --
>&amp;SELECTED_CN=<!-- TODO(4) select CURRENT_CN --></xsl:attribute>

Solution:


<xsl:attribute name="href">portalservice?GI_ID=<xsl:value-of
select="../../@id"/>&amp;CURRENT_DN=<xsl:value-of
select="../@CURRENT_DN"/>&amp;SELECTED_CN=<xsl:value-of select="."/></xsl:attribute>

  1. Code fill:


<xsl:attribute name="href">portalservice?GI_ID=<!-- TODO(5) select gadget id --
>&amp;NPState=<!-- TODO(6) set the NPState to the right value --
>t&amp;CURRENT_DN=<xsl:value-of select="../@CURRENT_DN"/>&amp;SELECTED_CN=<xsl:valueof
select="."/></xsl:attribute>

Solution:


<xsl:attribute name="href">portalservice?GI_ID=<xsl:value-of
select="../../@id"/>&amp;NPState=AttrList&amp;CURRENT_DN=<xsl:value-of
select="../@CURRENT_DN"/>&amp;SELECTED_CN=<xsl:value-of select="."/></xsl:attribute>

Previous Contents
download sample file