Hi, thanks for your reply.
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
Yes and yes, my page2xhtml.xsl is almost the same as the original that
ships with Lenya, I just performed some changes in HTML code inside
<xsl:template match="cmsbody">
and left everything else untouched.
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
I haven't had time yet for reading this sections of your page, I'll try
and do it during this weekend and see if it helps me on the language issue.
For purposes of debugging I've inserted the following lines in this xsl
file:
$root: <xsl:value-of select="$root"/><br/>
$document-id: <xsl:value-of select="$document-id"/><br/>
$document-type: <xsl:value-of select="$document-type"/><br/>
$url: <xsl:value-of select="$url"/><br/>
$language: <xsl:value-of select="$language"/><br/>
I've defined each parameter in the following lines of
publication-sitemap.xmap to present the sames values whether I'm in a
staff members page (ex:. live/staff/asg.html) or in its profile page
(ex:. live/staff/asg/profile), in order to "simulate" they're the same
page for navigational purposes, i.e., the breadcrumbs shows the same
path and the selected menuitem is the same for both pages.
<map:transform src="xslt/page2xhtml.xsl">
<map:parameter name="document-id" value="/staff/{2}"/>
<map:parameter name="document-type" value="xhtml"/>
<map:parameter name="language"
value="{page-envelope:document-language}"/>
<map:parameter name="root"
value="{page-envelope:context-prefix}/{page-envelope:publication-id}/{page-envelope:area}"/>
<map:parameter name="url" value="staff/{2}.html"/>
</map:transform>
As you can see if you visit the page at
http://gris.uninova.pt:8080/lenya/gris/live/staff/asg_en.html and
http://gris.uninova.pt:8080/lenya/gris/live/staff/asg/profile, in the
second link the publication loses the notion of the current node, so
naturally it won't write any breadcrumbs and won't select any menuitem.
I've been looking for some clues to solve this in
publication-sitemap.xmap, page2xhtml.xsl, breadcrumb.xsl and menu.xsl,
but got no luck so far. Any idea what is causing this abnormal behavior?
Thanks for your attention, regards,
Rolando
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]