Changeset 6077 for trunk

Show
Ignore:
Timestamp:
11/16/11 17:26:33 (6 months ago)
Author:
mtld
Message:

remove namespaces when runtime includes are copied to result tree

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pustefix-core/src/main/resources/PUSTEFIX-INF/xsl/default_copy.xsl

    r5100 r6077  
    99<!--  works only when the default rule actually is called... --> 
    1010 
    11   <xsl:template match="*|/"> 
     11  <xsl:template match="/"> 
    1212    <xsl:param name="__env"/> 
    1313    <xsl:copy> 
    14       <xsl:copy-of select="./@*"/> 
    1514      <xsl:apply-templates> 
    1615        <xsl:with-param name="__env" select="$__env"/> 
     
    1817    </xsl:copy> 
    1918  </xsl:template> 
     19   
     20  <xsl:template match="*"> 
     21    <xsl:param name="__env"/> 
     22    <xsl:choose> 
     23      <xsl:when test="$__target_key = '__NONE__'"> 
     24        <xsl:element name="{local-name()}"> 
     25          <xsl:copy-of select="./@*"/> 
     26          <xsl:apply-templates> 
     27            <xsl:with-param name="__env" select="$__env"/> 
     28          </xsl:apply-templates> 
     29        </xsl:element> 
     30      </xsl:when> 
     31      <xsl:otherwise> 
     32        <xsl:copy> 
     33          <xsl:copy-of select="./@*"/> 
     34          <xsl:apply-templates> 
     35            <xsl:with-param name="__env" select="$__env"/> 
     36          </xsl:apply-templates> 
     37        </xsl:copy> 
     38      </xsl:otherwise> 
     39    </xsl:choose> 
     40  </xsl:template> 
    2041 
    2142</xsl:stylesheet>