Author: awiner
Date: Tue May  1 13:45:29 2007
New Revision: 534236

URL: http://svn.apache.org/viewvc?view=rev&rev=534236
Log:
ADFFACES-472: allow custom component metadata in faces-config.xml
- Patch from Andy Schwartz

Modified:
    
incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform.xsl

Modified: 
incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform.xsl
URL: 
http://svn.apache.org/viewvc/incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform.xsl?view=diff&rev=534236&r1=534235&r2=534236
==============================================================================
--- 
incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform.xsl
 (original)
+++ 
incubator/adffaces/trunk/plugins/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform.xsl
 Tue May  1 13:45:29 2007
@@ -825,9 +825,16 @@
   </xsl:template>
 
   <!-- Handle metadata we do not know about by letting it through.  Currently,
-    just for property-extension, but should be global.  See JIRA issues
-    ADFFACES-358 and ADFFACES-361 -->
+   just for property-extension and component-metadata, but should be global.
+   See JIRA issues ADFFACES-358, ADFFACES-361 and ADFFACES-472 -->
   <xsl:template match="javaee:property-extension/*[namespace-uri() != 
'http://java.sun.com/xml/ns/javaee' and namespace-uri() 
!='http://myfaces.apache.org/maven-faces-plugin']">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()"/>
+      <xsl:value-of select="text()"/>
+    </xsl:copy> 
+  </xsl:template>
+
+  <xsl:template match="mfp:component-metadata/*[namespace-uri() != 
'http://java.sun.com/xml/ns/javaee' and namespace-uri() 
!='http://myfaces.apache.org/maven-faces-plugin']">
     <xsl:copy>
       <xsl:apply-templates select="@*|node()"/>
       <xsl:value-of select="text()"/>


Reply via email to