Hi, André, I'm sorry I'm not at my main computer, so I can't paste example code 
or provide links, but the secret to success is going to be encoding your markup 
in DRI. The title and breadcrumbs links can be put in that way. To see an 
example, just look at the DRI behind any page (I always forget how, but it 
involves adding something to the page's URL in you browser, look it up in the 
wiki). There is also an excellent reference on the entire DRI spec on the wiki. 
If you can, change your whole markup over from straight HTML to DRI, add the 
markup for the title and breadcrumbs, and see if that fixes things for you.

--Hardy

Sent from my iPad

On May 20, 2011, at 7:12 AM, "André" 
<andre.ass...@usp.br<mailto:andre.ass...@usp.br>> wrote:

Dear all,

We're trying to create some info pages to our XMLUI 1.7.0 repository using the 
Mirage theme.
The problem probably resides in my poor knowledge of XSLT.

1) We've sucessfully added links to the side menu, by adding a link inside the 
<xsl:template match="dri:options">  eg:
<div id="ds-search-option" class="ds-option-set">
<a>
<xsl:attribute name="href">
<xsl:value-of select="/dri:document/dri:
meta/dri:pageMeta/dri:metadata[@element='contextPath'][not(@qualifier)]"/>
<xsl:text>/about</xsl:text>
</xsl:attribute>
<i18n:text>xmlui.dri2xhtml.structural.informacoes.sobre</i18n:text>
</a><br/>
[etc...]


2) We editted the Mirage.xsl overriding the <xsl:template match="dri:body"> 
with conditionals for handling the call for the info pages  eg:
<xsl:template match="dri:body">
<div id="ds-body">
<xsl:choose>
<xsl:when 
test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about'">
<div>
<h1>ABOUT PAGE - THIS IS A SIMPLE TEST</h1>
<p>Lorem Ipsum dolor sit amet</p>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates />
</xsl:otherwise>
[etc...]


Question 1) Everything is ok, except for the page title. When we click the 
"Communities and collections" link, the title of the browser correctly shows 
"Communities", but with our page we get a "Page not found" title, despite the 
fact that the contents are shown correctly. Even when we include a html page 
instead of hardcoding it in the xsl (eg. see code below), the contents are 
showing correctly but the <title> of the html appears not to be interpreted.

<xsl:when 
test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']='about'">
<p><xsl:copy-of select="document('./Reference/lib/about.html')" /></p>
</xsl:when>


Question 2) The breadcrumbs also don't appear when accessing those info pages 
we've created.


Any help will be very much appreciated.

Thank you
Andre Assada
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to