12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- BI and PM: qs
- (C) Copyright IBM Corp. 2001, 2017
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
-
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <!-- generate text for simple element -->
- <xsl:template match="*" mode="markup">
- <xsl:text><</xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:apply-templates select="@*" mode="markup"/>
- <xsl:text>/></xsl:text>
- </xsl:template>
- <!-- generate text for an element with children or text -->
- <xsl:template match="*[* | text()]" mode="markup">
- <xsl:text><</xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:apply-templates select="@*" mode="markup"/>
- <xsl:text>></xsl:text>
- <xsl:apply-templates select="* | text()" mode="markup"/>
- <xsl:text></</xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:text>></xsl:text>
- </xsl:template>
- <!-- generate text for an attribute -->
- <xsl:template match="@*" mode="markup">
- <xsl:text> </xsl:text>
- <xsl:value-of select="name()"/>
- <xsl:text>="</xsl:text>
- <xsl:value-of select="xtsext:xmlencode( string( . ) )"/>
- <xsl:text>"</xsl:text>
- </xsl:template>
- <!-- generate text -->
- <xsl:template match="text()" mode="markup">
- <xsl:value-of select="xtsext:xmlencode( string( . ) )"/>
- </xsl:template>
- </xsl:stylesheet>
|