123456789101112131415161718192021222324252627282930313233343536 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: fmmd
- (C) Copyright IBM Corp. 2003, 2013
- US Government Users Restricted Rights - Use, duplication or disclosure
- restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <xsl:output encoding="utf-8" method="xml"/>
- <xsl:template match="/*[local-name()='project']">
- <xsl:element name="{local-name()}" namespace="{namespace-uri()}">
- <xsl:for-each select="@*">
- <xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates select="node()"/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="*">
- <xsl:element name="{local-name(.)}" namespace="{$defNS}">
- <xsl:for-each select="@*">
- <xsl:attribute name="{local-name(.)}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:apply-templates select="node()"/>
- </xsl:element>
- </xsl:template>
- <xsl:template match="/">
- <xsl:apply-templates select="node()"/>
- </xsl:template>
- <xsl:template match="comment()"/>
- <xsl:variable name="defNS">
- <xsl:value-of select="namespace-uri(/*[local-name()='project'])"/></xsl:variable>
- </xsl:stylesheet>
|