The first problem is because your external XML is not matching
properly.  Does the first create XML with the main tag <xhtml:div
id="body">?  You should force that tag in OAI2xhtml.xsl.  The "xhtml"
prefix is added because of the "xmlns" parameter:
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml";>
<xsl:template match="/">
 <div id="body">
   My content
 </div>
</xsl:template>
</xsl:stylesheet>
will create:
<xhtml:div id="body">My content</xhtml:div>
Thanks, it worked, I had already tried that solution, but positioned the <div id="body"> inside a <html> <body> structure which wouldn't work.

The second problem is because your links are not created properly.
If they are created in XSL, then they should be
"/{root}/newpage.html".  Maybe you have a "{document-id}/" in them?

If the second problem is with the navigation menus, it is because you
are setting the menus to the homepage, so they are relative to "/",
but your page's URL is actually ".../staff/asg/".  Correct the XMAP to
use the current page:
<map:part 
src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/menu/staff/{2}/index.xml"/>
Thanks once again, this solved the problems involving the link's urls.

An alternative is to add a slash in menu.xsl
<a href="[EMAIL PROTECTED]">
Becomes:
<a href="/[EMAIL PROTECTED]">
But that may break other things.
I had tried that solution earlier and it did break other things.


Having passed those issues, small ones arose now. I'm not getting breadcrumb when visiting the profile link. I've looked into the generated source code and a <div id="breadcrumb"> exists but is followed by the closing tag </div>, which means it's not correctly being built. Any idea why? This is the code I have for generating the different navigation components in my publication-sitemap.xmap.

<map:part src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/breadcrumb/staff/{2}/index_{page-envelope:document-language}.xml"/> <map:part src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/tabs/staff/{2}/index_{page-envelope:document-language}.xml"/> <map:part src="cocoon://navigation/{page-envelope:publication-id}/{page-envelope:area}/menu/staff/{2}/index_{page-envelope:document-language}.xml"/>

Other thing that happens is that, whether I'm on the page's default language, pt, whether in its en version, when clicking the profile link the navigation components appear always in pt. Do I have to create distinct link, something like profile and profile_en, and harcode matches for each one of them in publication-sitemap.xmap or am I missing something?

Thanks for your help, regards,
Rolando

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to