Hi, I am using DSpace 1.5.1, on a development instance running on my
Windows notebook, and I'm attempting to follow option #1 (XSL-based
method) from the Manakin theme tutorial on the wiki, for adding static
pages:

http://wiki.dspace.org/index.php/Manakin_theme_tutorial#Adding_static_pa
ges

I will paste some code snippets below, but first the problem: when I
navigate to http://localhost:8080/xmlui/add, the body of the page is
blank, and the title of the page reads "Page not found".

I'm sure I'm missing something obvious. I have confirmed that the file
"add.xml" is in a subfolder of the theme folder, called "pages".

Any ideas? TIA.


Here's the override code for the main body template, which I'm using:

    <xsl:template match="dri:body">
        <div id="ds-body">

            <ul id="ds-trail">
                        [snip, not important]
            </ul>

            <xsl:if
test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='alert']
[...@qualifier='message']">
                <div id="ds-system-wide-alert">
                                [snip, not important]
                </div>
            </xsl:if>

           <!-- Check for the custom pages: add, about, help -->

           <xsl:choose>
               <xsl:when
test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='request
']...@qualifier='URI']='add'">
                   <xsl:copy-of select="document('pages/add.xml')" />
               </xsl:when>
               <xsl:when
test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='request
']...@qualifier='URI']='about'">
                   <xsl:copy-of select="document('pages/about.xml')" />
               </xsl:when>
               <xsl:when
test="/dri:document/dri:meta/dri:pageMeta/dri:metada...@element='request
']...@qualifier='URI']='help'">
                   <xsl:copy-of select="document('pages/help.xml')" />
               </xsl:when>
               <!-- Otherwise use default handling of body -->
               <xsl:otherwise>
                   <xsl:apply-templates />
               </xsl:otherwise>
           </xsl:choose>

        </div>
    </xsl:template>

And here's the very basic pages/add.xml file I'm using:

<h1 xmlns="http://di.tamu.edu/DRI/1.0/"; style="font-size: 200%;"
class="ds-div-head">Add to MOspace</h1>
<div id="file_news_div_news" class="ds-static-div primary">
<p class="ds-paragraph">more content coming soon...</p>
</div>

--
HARDY POTTINGER <pottinge...@umsystem.edu>
University of Missouri Library Systems
http://lso.umsystem.edu/~hardy/
"No matter how far down the wrong road you've gone,
turn back." --Turkish proverb

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to