You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2009/05/20 08:02:25 UTC
svn commit: r776569 -
/myfaces/trinidad-maven/trunk/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl
Author: matzew
Date: Wed May 20 06:02:25 2009
New Revision: 776569
URL: http://svn.apache.org/viewvc?rev=776569&view=rev
Log:
TRINIDAD-1476 - Unnecessary tr and trh namespace declarations in faces-config.xml
Thx to Bill Baggett for the patch
Modified:
myfaces/trinidad-maven/trunk/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl
Modified: myfaces/trinidad-maven/trunk/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl
URL: http://svn.apache.org/viewvc/myfaces/trinidad-maven/trunk/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl?rev=776569&r1=776568&r2=776569&view=diff
==============================================================================
--- myfaces/trinidad-maven/trunk/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl (original)
+++ myfaces/trinidad-maven/trunk/maven-faces-plugin/src/main/resources/org/apache/myfaces/trinidadbuild/plugin/faces/resources/transform12.xsl Wed May 20 06:02:25 2009
@@ -50,6 +50,12 @@
<xsl:template match="//text()" />
<!-- these are used for inserting a namespace declaration in xslt 1.0 -->
+ <xsl:variable name="tr">
+ <xsl:element name="tr:xxx" namespace="http://myfaces.apache.org/trinidad"/>
+ </xsl:variable>
+ <xsl:variable name="trh">
+ <xsl:element name="trh:xxx" namespace="http://myfaces.apache.org/trinidad/html"/>
+ </xsl:variable>
<xsl:variable name="fmd">
<xsl:element name="fmd:xxx" namespace="http://java.sun.com/xml/ns/javaee/faces/design-time-metadata"/>
</xsl:variable>
@@ -64,6 +70,8 @@
<xsl:element name="faces-config"
namespace="http://java.sun.com/xml/ns/javaee" >
<!-- Add namespace declarations at root element, so they don't show up at lower elements when we change namespaces -->
+ <xsl:copy-of select="exsl:node-set($tr)//namespace::*"/>
+ <xsl:copy-of select="exsl:node-set($trh)//namespace::*"/>
<xsl:copy-of select="exsl:node-set($fmd)//namespace::*"/>
<xsl:copy-of select="exsl:node-set($mfp)//namespace::*"/>
<xsl:copy-of select="exsl:node-set($mafp)//namespace::*"/>