Based on (by David Walker, found in the archive):
<xsl:template match="dri:options/dri:li...@n = 'account']" priority="5">
 <xsl:if test=" [ page logic here ] ">
  <xsl:apply-templates select="dri:head" />
  <div>
   <xsl:call-template name="standardAttributes">
    <xsl:with-param name="class">ds-option-set</xsl:with-param>
   </xsl:call-template>
   <ul class="ds-simple-list">
    <xsl:apply-templates select="dri:item" mode="nested"/>
   </ul>
  </div>
 <xsl:if>
</xsl:template>

(I found that @n = 'account']" threw invalid token errors)

I modified Classic.xsl to be:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
    xmlns:i18n="http://apache.org/cocoon/i18n/2.1";
    xmlns:dri="http://di.tamu.edu/DRI/1.0/";
    xmlns:mets="http://www.loc.gov/METS/";
    xmlns:dc="http://purl.org/dc/elements/1.1/";
    xmlns:dim="http://www.dspace.org/xmlns/dspace/dim";
    xmlns:mods="http://www.loc.gov/mods/v3";
    xmlns:xlink="http://www.w3.org/TR/xlink/";
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";  version="1.0">

    <xsl:import href="../dri2xhtml.xsl"/>
    <xsl:output indent="yes"/>

<xsl:template match="dri:options/*">
<xsl:if test="/dri:document/dri:meta/dri:userMeta/@authenticated = 'yes'">
  <xsl:apply-templates select="dri:head" />
  <div>
   <xsl:call-template name="standardAttributes">
    <xsl:with-param name="class">ds-option-set</xsl:with-param>
   </xsl:call-template>

   <ul class="ds-simple-list">
    <xsl:apply-templates select="dri:item" mode="nested"/>
   </ul>
  </div>
 </xsl:if>
</xsl:template>
</xsl:stylesheet>

and it works great except it removes all the side option boxes on
every page if I'm not logged in.
I just want it to make the My Account box disappear when I'm not logged in.
Could someone please give me a functional test so that the above only
affects the "My Account" box?


Thanks,
Marvin

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to