Author: awiner
Date: Tue Jan 23 13:49:53 2007
New Revision: 499146

URL: http://svn.apache.org/viewvc?view=rev&rev=499146
Log:
ADFFACES-358: Improvement to plugins to generate generic metadata in 
faces-config for the custom component attributes
The patch generated a lot more diffs than expected in the base metadata, but 
happily these
changes were all improvements.  In particular, facet-metadata is now much more 
correctly generated.

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=499146&r1=499145&r2=499146
==============================================================================
--- 
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 Jan 23 13:49:53 2007
@@ -389,7 +389,7 @@
     </xsl:element>
   </xsl:template>
   
-  <xsl:template 
match="//javaee:property-extension[mfp:property-values|mfp:group|mfp:property-editor|mfp:expert|mfp:unsupported-agents]"
 >
+  <xsl:template 
match="//javaee:property-extension[mfp:property-values|mfp:group|mfp:property-editor|mfp:expert|mfp:unsupported-agents|*[namespace-uri()
 != 'http://java.sun.com/xml/ns/javaee' and namespace-uri() 
!='http://myfaces.apache.org/maven-faces-plugin']]" >
     <xsl:element name="property-extension" >
       <xsl:element name="property-metadata" >
         <xsl:apply-templates/>
@@ -822,6 +822,16 @@
     <xsl:element name="unsupported-agents" >
       <xsl:value-of select="text()" />
     </xsl:element>
+  </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 -->
+  <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>
 
 


Reply via email to