- Timestamp:
- 11/16/11 17:26:33 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/pustefix-core/src/main/resources/PUSTEFIX-INF/xsl/default_copy.xsl
r5100 r6077 9 9 <!-- works only when the default rule actually is called... --> 10 10 11 <xsl:template match=" *|/">11 <xsl:template match="/"> 12 12 <xsl:param name="__env"/> 13 13 <xsl:copy> 14 <xsl:copy-of select="./@*"/>15 14 <xsl:apply-templates> 16 15 <xsl:with-param name="__env" select="$__env"/> … … 18 17 </xsl:copy> 19 18 </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> 20 41 21 42 </xsl:stylesheet>
