12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?xml version='1.0' encoding='UTF-8' ?>
- {@link https://www.w3.org/TR/xml-c14n11/ Canonical XML}
- <xsl:transform
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
- version='1.0'
- >
-
- <xsl:output
- method='xml'
- indent='no'
- cdata-section-elements=''
- encoding='UTF-8' />
-
- <xsl:strip-space elements='*' />
-
- <xsl:template match='*' priority='10'>
- <xsl:element name='{local-name()}' namespace='{namespace-uri()}'>
- <xsl:apply-templates select='@*'>
- <xsl:sort select='namespace-uri()' />
- <xsl:sort select='local-name()' />
- </xsl:apply-templates>
- <xsl:apply-templates select='node()' />
- </xsl:element>
- </xsl:template>
-
- <xsl:template match='@*'>
- <xsl:attribute name='{local-name()}' namespace='{namespace-uri()}'>
- <xsl:value-of select='.' />
- </xsl:attribute>
- </xsl:template>
-
- <xsl:template match='comment()' priority='10' />
-
- <xsl:template match='node()'>
- <xsl:copy>
- <xsl:apply-templates select='node()' />
- </xsl:copy>
- </xsl:template>
- </xsl:transform>
|