On 9/1/05, Rolando Isidoro <[EMAIL PROTECTED]> wrote:
> 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"/>

The breadcrumb line looks correct.  Does your XSL have:
<xsl:apply-templates select="xhtml:[EMAIL PROTECTED] = 'breadcrumb']"/>

And:
<xsl:template match="@*|node()" priority="-1">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>

So the breadcrumb DIV is noticed and copied?

Set a breakpoint to see what XML is generated:
http://solprovider.com/lenya/views


> 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?

The issue is likely to be in your XSL.

See my entire section about languages:
http://solprovider.com/lenya/language

The easy answer is to always include the language for all links:
http://solprovider.com/lenya/languageurls

You need to add the language to every link in your XSL:
http://solprovider.com/lenya/variables

solprovider

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

Reply via email to