You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2005/04/12 15:25:47 UTC

Re: Helpful Notes about Installation (and Suggestions for Developers)

Josias Thoeny wrote:

[...]

> I just tried the default publication of Lenya 1.2.x.
> The menu on the left side in the authoring view always is displayed in
> english (e.g. the Features item), no matter if I visit a german or an
> english page. In other words, the content of a page is translated
> correctly according to the url (e.g _de), but the navigation (menu and
> tabs) are not. (The locale has not influence on that)
> This seems to be a bug, or is there something wrong with my setup?

I can confirm this, it seems to be a bug. Is this a new issue?
It's strange that nobody ever noticed it ...

BTW, it works correctly in the trunk.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Helpful Notes about Installation (and Suggestions for Developers)

Posted by so...@gmail.com.
Andreas Hartmann <an...@apache.org> wrote:
> Does it? IIUC the CMS GUI uses the Cocoon i18n based on the {request:locale},
> the content uses the {page-envelope:document-language} which is based on
> the URL. Or am I missing something?
> Josias Thoeny wrote:
> > I just tried the default publication of Lenya 1.2.x.
> > The menu on the left side in the authoring view always is displayed in
> > english (e.g. the Features item), no matter if I visit a german or an
> > english page. In other words, the content of a page is translated
> > correctly according to the url (e.g _de), but the navigation (menu and
> > tabs) are not. (The locale has not influence on that)
> > This seems to be a bug, or is there something wrong with my setup?
> I can confirm this, it seems to be a bug. Is this a new issue?
> It's strange that nobody ever noticed it ...
> BTW, it works correctly in the trunk.
> -- Andreas

All the installed sitemaps sent {response:locale} to i18n
transformation, so i18n would always use the browser language.  This
affects the CMS GUI and production site navigation.

Production site navigation depends on the developer.  If i18n is used,
then the browser setting is used.  If page2xhtml.xsl uses code like:
<xsl:when test="$language = 'xx'">
then it depends on how the language variable is set.
[I pass language as a parameter from the sitemap using
page-envelope:document-language.  Is that information available to XSL
from some global?]

Oops.  Site naviagation also refers to the menu.xsl and
breadcrumb.xsl.  Yes, they correctly use the document language. 
Above, I was referring to items like the Search button and a Login
link.

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: schema imports another schema

Posted by Lee Carroll <le...@aol.com>.
> Quite a few people were mentioning this problem before and I think it 
> would make
> sense to fix this somehow. But I am not sure how what would be the best 
> solution.
> Of course we could add a pipeline to the Lenya core which would match 
> all URLs with the suffix "xsd", but I don't think this is a good idea.
> 
> HTH
> 
> Michi
> 

Of course ! 

Thanks Lee C

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: schema imports another schema

Posted by Michael Wechner <mi...@wyona.com>.
Lee Carroll wrote:

> I've come up against a problem trying to load a schema which imports 
> another schema
>
> The url used for the schema is:
>
> {request:requestURI}?lenya.usecase=display&amp;lenya.step=loadXSD
>
> The match is below with a simple read of the xsd
>
> <map:match pattern="loadXSD" type="step">
> <map:read 
> src="{global:basedir}/pubs/{page-envelope:publication-id}/lenya/resources/generalPage/generalPage.xsd"/> 
>
> </map:match>
>
> The imported schema is in the same directory and referenced relatively 
> like
>
> schemaLocation="fragment.xsd"
>
> The generalPage xsd is found fine but fails to be vaild as the import 
> fails ???


one needs to add a pipeline to the publication sitemap in order to "allow"
the loading of the referenced XSD. (it should get clearer from the 
logfile,  resource not found or something similar)

Quite a few people were mentioning this problem before and I think it 
would make
sense to fix this somehow. But I am not sure how what would be the best 
solution.
Of course we could add a pipeline to the Lenya core which would match 
all URLs with the suffix "xsd", but I don't think this is a good idea.

HTH

Michi

>
> Any Ideas
>
> Lee C
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


schema imports another schema

Posted by Lee Carroll <le...@aol.com>.
I've come up against a problem trying to load a schema which imports another 
schema

The url used for the schema is:

{request:requestURI}?lenya.usecase=display&amp;lenya.step=loadXSD

The match is below with a simple read of the xsd

<map:match pattern="loadXSD" type="step">
<map:read 
src="{global:basedir}/pubs/{page-envelope:publication-id}/lenya/resources/generalPage/generalPage.xsd"/>
</map:match>

The imported schema is in the same directory and referenced relatively like

schemaLocation="fragment.xsd"

The generalPage xsd is found fine but fails to be vaild as the import fails 
???

Any Ideas

Lee C 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Helpful Notes about Installation (and Suggestions for Developers)

Posted by Andreas Hartmann <an...@apache.org>.
Josias Thoeny wrote:
> On Tue, 2005-04-12 at 15:25 +0200, Andreas Hartmann wrote:
> 
>>Josias Thoeny wrote:
>>
>>[...]
>>
>>
>>>I just tried the default publication of Lenya 1.2.x.
>>>The menu on the left side in the authoring view always is displayed in
>>>english (e.g. the Features item), no matter if I visit a german or an
>>>english page. In other words, the content of a page is translated
>>>correctly according to the url (e.g _de), but the navigation (menu and
>>>tabs) are not. (The locale has not influence on that)
>>>This seems to be a bug, or is there something wrong with my setup?
>>
>>I can confirm this, it seems to be a bug. Is this a new issue?
>>It's strange that nobody ever noticed it ...
>>
>>BTW, it works correctly in the trunk.
>>
> 
> 
> I tracked down the problem to a missing namespace url in
> SiteTreeGenerator.java, line 158.
> 
> Insert "http://www.w3.org/XML/1998/namespace" as namespace uri of the
> xml:lang attribute and it should work again.

Thanks, that fixes it. BTW, the namespace URI is available as

   org.xml.sax.helpers.NamespaceSupport.XMLNS

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Helpful Notes about Installation (and Suggestions for Developers)

Posted by Josias Thoeny <jo...@wyona.com>.
On Tue, 2005-04-12 at 15:25 +0200, Andreas Hartmann wrote:
> Josias Thoeny wrote:
> 
> [...]
> 
> > I just tried the default publication of Lenya 1.2.x.
> > The menu on the left side in the authoring view always is displayed in
> > english (e.g. the Features item), no matter if I visit a german or an
> > english page. In other words, the content of a page is translated
> > correctly according to the url (e.g _de), but the navigation (menu and
> > tabs) are not. (The locale has not influence on that)
> > This seems to be a bug, or is there something wrong with my setup?
> 
> I can confirm this, it seems to be a bug. Is this a new issue?
> It's strange that nobody ever noticed it ...
> 
> BTW, it works correctly in the trunk.
> 

I tracked down the problem to a missing namespace url in
SiteTreeGenerator.java, line 158.

Insert "http://www.w3.org/XML/1998/namespace" as namespace uri of the
xml:lang attribute and it should work again.

  Josias




> -- Andreas
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org