myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r833048 - /myfaces/trinidad-maven/branches/2.0.0-branch/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform20.xsl
Date Thu, 05 Nov 2009 13:44:23 GMT
Author: matzew
Date: Thu Nov  5 13:44:02 2009
New Revision: 833048

URL: http://svn.apache.org/viewvc?rev=833048&view=rev
Log:
added more rules to support more of the new XML elements in the faces-config.xml file.

See also TRINIDAD-1623 (and its subtasks)

Modified:
    myfaces/trinidad-maven/branches/2.0.0-branch/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform20.xsl

Modified: myfaces/trinidad-maven/branches/2.0.0-branch/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform20.xsl
URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/branches/2.0.0-branch/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform20.xsl?rev=833048&r1=833047&r2=833048&view=diff
==============================================================================
--- myfaces/trinidad-maven/branches/2.0.0-branch/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform20.xsl
(original)
+++ myfaces/trinidad-maven/branches/2.0.0-branch/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform20.xsl
Thu Nov  5 13:44:02 2009
@@ -96,6 +96,12 @@
           <xsl:apply-templates select="javaee:icon" />
           <xsl:apply-templates select="javaee:render-kit-id" />
           <xsl:apply-templates select="javaee:render-kit-class" />
+
+          <!-- client-behavior-renderer -->
+            <xsl:for-each select="key('render-kit-id', javaee:render-kit-id/text())" >
+              <xsl:apply-templates select="javaee:client-behavior-renderer[contains(javaee:client-behavior-renderer-class,
$packageContains)]" />
+            </xsl:for-each>
+
           <!-- Drop renderers if desired -->
           <xsl:if test="$removeRenderers != 'true'">
             <xsl:for-each select="key('render-kit-id', javaee:render-kit-id/text())" >
@@ -281,6 +287,7 @@
       <xsl:apply-templates select="javaee:el-resolver[contains(text(), $packageContains)]"
/>
       <xsl:apply-templates select="javaee:property-resolver[contains(text(), $packageContains)]"
/>
       <xsl:apply-templates select="javaee:variable-resolver[contains(text(), $packageContains)]"
/>
+      <xsl:apply-templates select="javaee:partial-traversal[contains(text(), $packageContains)]"
/>
       <xsl:apply-templates select="javaee:locale-config" />
       <xsl:apply-templates select="javaee:resource-bundle" />
     </xsl:element>
@@ -339,6 +346,12 @@
       <xsl:value-of select="text()" />
     </xsl:element>
   </xsl:template>
+  
+  <xsl:template match="//javaee:partial-traversal" >
+    <xsl:element name="partial-traversal" >
+      <xsl:value-of select="text()" />
+    </xsl:element>
+  </xsl:template>
 
   <xsl:template match="//javaee:locale-config" >
     <xsl:element name="locale-config" >
@@ -352,6 +365,7 @@
       <xsl:apply-templates select="javaee:faces-context-factory[contains(text(), $packageContains)]"
/>
       <xsl:apply-templates select="javaee:lifecycle-factory[contains(text(), $packageContains)]"
/>
       <xsl:apply-templates select="javaee:render-kit-factory[contains(text(), $packageContains)]"
/>
+      <xsl:apply-templates select="javaee:view-declaration-language-factory[contains(text(),
$packageContains)]" />
     </xsl:element>
   </xsl:template>
 
@@ -379,6 +393,12 @@
     </xsl:element>
   </xsl:template>
 
+  <xsl:template match="//javaee:view-declaration-language-factory" >
+    <xsl:element name="view-declaration-language-factory" >
+      <xsl:value-of select="text()" />
+    </xsl:element>
+  </xsl:template>
+
   <xsl:template match="//javaee:component" >
     <xsl:element name="component" >
       <xsl:apply-templates />
@@ -829,6 +849,24 @@
     </xsl:element>
   </xsl:template>
 
+  <xsl:template match="//javaee:client-behavior-renderer" >
+    <xsl:element name="client-behavior-renderer" >
+      <xsl:apply-templates />
+    </xsl:element>
+  </xsl:template>
+
+  <xsl:template match="//javaee:client-behavior-renderer-type" >
+    <xsl:element name="client-behavior-renderer-type" >
+      <xsl:value-of select="text()" />
+    </xsl:element>
+  </xsl:template>
+
+  <xsl:template match="//javaee:client-behavior-renderer-class" >
+    <xsl:element name="client-behavior-renderer-class" >
+      <xsl:value-of select="text()" />
+    </xsl:element>
+  </xsl:template>
+
   <xsl:template match="//javaee:renderer-extension[mfp:unsupported-agents]" >
     <xsl:element name="renderer-extension" >
       <xsl:element name="renderer-metadata" >



Mime
View raw message