My thanks to Dave Walker, he found the error that caused
"(I found that @n = 'account']" threw invalid errors)" when I used his method
in Classic.xsl.
I had copied what he shows off the archive page. I made his change and it
works great.
Epersons can now login by going to .../xmlui/login but no one else sees the
login option or register option. Just what we needed.
On Tue, Nov 16, 2010 at 5:02 PM, Walker, David<[email protected]> wrote:
> Does the XSL file literally say:
>
> <xsl:template match="dri:options/dri:li...@n = 'account']" priority="5">
>
> If so, change it to:
>
> <xsl:template match="dri:options/dri:li...@n = 'account']" priority="5">
>
> If you grabbed the code off of the Web listserv archive, it may have
mistaken that for an email address pattern, and tried to anonymize it or something?
>
> --Dave
>
My Classic.xsl:
<?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/dri:li...@n = 'account']" priority="5">
<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>
Marvin
</xsl:stylesheet>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech