You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mf...@apache.org on 2010/07/12 11:38:01 UTC
svn commit: r963222 -
/myfaces/portlet-bridge/tck/trunk_2.0.x/src/test/resources/pluto-portal-driver-config.xsl
Author: mfreedman
Date: Mon Jul 12 09:38:00 2010
New Revision: 963222
URL: http://svn.apache.org/viewvc?rev=963222&view=rev
Log:
Changed to generate a version that will work with the tomcat_pluto test definition file.
Modified:
myfaces/portlet-bridge/tck/trunk_2.0.x/src/test/resources/pluto-portal-driver-config.xsl
Modified: myfaces/portlet-bridge/tck/trunk_2.0.x/src/test/resources/pluto-portal-driver-config.xsl
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/tck/trunk_2.0.x/src/test/resources/pluto-portal-driver-config.xsl?rev=963222&r1=963221&r2=963222&view=diff
==============================================================================
--- myfaces/portlet-bridge/tck/trunk_2.0.x/src/test/resources/pluto-portal-driver-config.xsl (original)
+++ myfaces/portlet-bridge/tck/trunk_2.0.x/src/test/resources/pluto-portal-driver-config.xsl Mon Jul 12 09:38:00 2010
@@ -20,7 +20,9 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pa="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
<xsl:strip-space elements="pa:portlet-app"/>
<xsl:output method="xml" indent="yes"/>
- <xsl:param name="portlet-app-context"/>
+ <xsl:param name="main-portlet-context"/>
+ <xsl:param name="extra-portlet-def"/>
+ <xsl:param name="extra-portlet-context"/>
<xsl:template match="/">
<pluto-portal-driver
xmlns="http://portals.apache.org/pluto/xsd/pluto-portal-driver-config.xsd"
@@ -31,7 +33,7 @@
<portal-name>pluto-portal-driver</portal-name>
- <portal-version>1.1.6</portal-version>
+ <portal-version>2.0.0</portal-version>
<container-name>Pluto Portal Driver</container-name>
<supports>
@@ -46,7 +48,10 @@
</supports>
<xsl:element name="render-config">
<xsl:attribute name="default">TestPage001</xsl:attribute>
+ <xsl:comment>Main tests</xsl:comment>
<xsl:apply-templates/>
+ <xsl:comment>Section3.2 Lifecycle set</xsl:comment>
+ <xsl:apply-templates select="document($extra-portlet-def)/pa:portlet-app"/>
</xsl:element>
</pluto-portal-driver>
</xsl:template>
@@ -56,7 +61,18 @@
<xsl:attribute name="name">TestPage<xsl:number format="001"/></xsl:attribute>
<xsl:attribute name="uri">/WEB-INF/themes/pluto-default-theme.jsp</xsl:attribute>
<xsl:element name="portlet">
- <xsl:attribute name="context">/<xsl:value-of select='$portlet-app-context'/></xsl:attribute>
+ <xsl:attribute name="context">/<xsl:value-of select='$main-portlet-context'/></xsl:attribute>
+ <xsl:attribute name="name"><xsl:value-of select="pa:portlet-name"/></xsl:attribute>
+ </xsl:element>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="pa:portlet-app/pa:portlet[pa:portlet-info/pa:title = 'chapter3Tests-lifecycleTest-portlet - LIFECYCLE IMPLEMENTATION CLASS SET']">
+ <xsl:element name="page">
+ <xsl:attribute name="name">TestPage141</xsl:attribute>
+ <xsl:attribute name="uri">/WEB-INF/themes/pluto-default-theme.jsp</xsl:attribute>
+ <xsl:element name="portlet">
+ <xsl:attribute name="context">/<xsl:value-of select='$extra-portlet-context'/></xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="pa:portlet-name"/></xsl:attribute>
</xsl:element>
</xsl:element>