| Marc Kupietz | aa7524b | 2024-09-22 12:00:48 +0200 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
| 2 | <!-- This file is part of the DITA Open Toolkit project hosted on
|
| 3 | Sourceforge.net. See the accompanying license.txt file for
|
| 4 | applicable licenses.-->
|
| 5 | <!-- (c) Copyright IBM Corp. 2006 All Rights Reserved. -->
|
| 6 |
|
| 7 | <xsl:stylesheet version="1.0"
|
| 8 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
| 9 |
|
| 10 | <xsl:output method="xml" />
|
| 11 |
|
| 12 | <xsl:template match="*" priority="10">
|
| 13 | <xsl:element name="{local-name()}">
|
| 14 | <xsl:for-each select="@*">
|
| 15 | <xsl:attribute name="{local-name()}">
|
| 16 | <xsl:value-of select="." />
|
| 17 | </xsl:attribute>
|
| 18 | </xsl:for-each>
|
| 19 | <xsl:apply-templates />
|
| 20 | </xsl:element>
|
| 21 | </xsl:template>
|
| 22 |
|
| 23 | <xsl:template match="comment()">
|
| 24 | <xsl:comment><xsl:value-of select="."/></xsl:comment>
|
| 25 | </xsl:template>
|
| 26 |
|
| 27 | <xsl:template match="*|processing-instruction()|text()">
|
| 28 | <xsl:copy>
|
| 29 | <xsl:apply-templates select="*|processing-instruction()|text()"/>
|
| 30 | </xsl:copy>
|
| 31 | </xsl:template>
|
| 32 |
|
| 33 | </xsl:stylesheet>
|