R: XSL portlet and namespaces (Jetspeed 1.5)
In case anybody else need to know: this can be fixed by modifying file XSLViewProcessor.java as follows: after the statement: final DocumentBuilderFactory docfactory = DocumentBuilderFactory.newInstance(); add the statement: docfactory.setNamespaceAware(true); (tested on Jetspeed 1.4) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
XSL portlet and namespaces (Jetspeed 1.5)
I have tried to configure an XSL portlet for an XML source whose elements belong to a namespace. The transformation does not work (it returns an unformatted sequence of values from the source XML file). The same transformation and source file work fine when I use xalan from the command line. The same portlet also works fine if I remove the namespace from the source XML file and modify the XSL accordingly. Can anybody help? The XML and XSL files follow. Thank you Cristina = ?xml version=1.0 encoding=UTF-8? ns:searchResult xmlns:ns=http://outerx.org/daisy/1.0; ns:titles ns:title name=idID/ns:title ns:title name=nameName/ns:title /ns:titles ns:rows ns:row id=1ns:value1/ns:value ns:valueNavigation for daisysite/ns:value /ns:row ns:row id=2 ns:value2/ns:value ns:valuedaisysite home/ns:value /ns:row ns:row id=3 ns:value3/ns:value ns:valueCris Document/ns:value /ns:row ns:row id=4 ns:value4/ns:value ns:valueSecondo Documento/ns:value /ns:row ns:row id=5 ns:value5/ns:value ns:valueModulo Deduzioni/ns:value /ns:row /ns:rows ns:executionInfo ns:queryselect id,name where true/ns:query ns:localeen/ns:locale ns:parseAndPrepareTime150/ns:parseAndPrepareTime ns:rdbmsQueryTime150/ns:rdbmsQueryTime ns:aclFilterTime541/ns:aclFilterTime ns:outputGenerationTime1413/ns:outputGenerationTime /ns:executionInfo /ns:searchResult ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:ns=http://outerx.org/daisy/1.0; xsl:template match=ns:searchResult table border=1 xsl:for-each select=ns:titles tr th xsl:value-of select=ns:title[1]/ /th th xsl:value-of select=ns:title[2]/ /th /tr /xsl:for-each xsl:for-each select=ns:rows xsl:for-each select=ns:row tr td xsl:value-of select=ns:value[1]/ /td td xsl:value-of select=ns:value[2]/ /td /tr /xsl:for-each /xsl:for-each /table /xsl:template /xsl:stylesheet --- Cristina Lissoni [EMAIL PROTECTED] Technologies Solutions S.p.A. Via Esterle 9 - 20132 Milano Tel.: 02 28014 1 Fax: 02 2610853 Cell.: 335 1023035 e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: preventing profileration of user's own psml files
If I understand correctly, you want a user with administrator role to control the layout of the default page for all roles. You should be able to do this by limiting the users' access rights to the default pages. For instance, for a new role called newrole: 1. define two new security constraints in security.xreg as follows: security-entry name=newrole-view_admin-all meta-info titleNewrole+V and Admin+C/title descriptionNewroles can view and Admin have full access./description /meta-info access action=* allow-if role=admin/ /access access action=view allow-if role=newrole/ /access /security-entry security-entry name=all-view_admin-all meta-info titleAll+V and Admin+C/title descriptionAll can view and Admin have full access./description /meta-info access action=* allow-if role=admin/ /access access action=view allow-if role=*/ /access access action=view allow-if user=anon/ /access /security-entry 2. In file JetspeedResources.properties modify the default security constraints as follows: services.PortalToolkit.default.anon.security.ref = all-view_admin-all services.PortalToolkit.default.role.security.ref = all-view_admin-all services.PortalToolkit.default.group.security.ref = all-view_admin-all 3. Login as administrator and create the default.psml page for newrole, and then change its security constraint to Newrole+V and Admin+C. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: R: Changes in a PSML referenced by another
My idea was that it should be possible do develop a new administration portlet to flush pages according to some criteria (e.g. all pages belonging to a user or to a role). This should be done by calling the methods query and refresh of the class CastorPsmlManagerService. But I never tried. Cristina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: Changes in a PSML referenced by another
I had the same problem. I also found out that if you try to modify the included page by clicking some customize icon from the including page, such changes are not permanent. I believe that the problem is the caching system, which notices modifications in the including page, but is not able to follow includes. I am not aware of a solution. For experimental purposes I temporarily removed the problem by setting services.PsmlManager.cacheSize=1 in JetspeedResources.properties, but of course this is not a real solution. Cristina -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Inviato: martedì 27 gennaio 2004 9.01 A: Jetspeed Users List Oggetto: Changes in a PSML referenced by another Hi, We have a PSML that references another for the anon user, this implies a menu and a submenu. When we make changes to the first PSML they are reflected in the menu. But, the changes made in the submenu PSML are not reflected until the project is restarted. ¿Why? ¿How can we change this behaviour? Thanks, Jose - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Managing multiple sites
Hi. Can somebody please suggest a way to manage different sites with Jetspeed? What I need is to define different sets of pages to be used when Jetspeed is accessed via different domain names, with a different look and feel for each domain name (at least logo and header). On the other hand user registration and authentication should be shared across the different sites. Thank you Cristina Lissoni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
R: Problem with IFrame Portlet
Hi Raju You cand find a discussion here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg10397.html -Messaggio originale- Da: venkat nagaraju [mailto:[EMAIL PROTECTED] Inviato: mercoledi 21 gennaio 2004 10.29 A: [EMAIL PROTECTED] Oggetto: Problem with IFrame Portlet Hi all, I am using IFrame Portlet to embed a webapplication as a portlet in jetspeed. I logged into the webapplication with the userid and password.But when i visit another pane in jetspeed and come back to webapplication. It is again asking for the userid and password i.e it is again reloading the application. How to maintain the state of the IFramePortlet. Thanks in Advance. Regards Raju Yahoo! India Mobile: Download the latest polyphonic ringtones. Go to http://in.mobile.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]