Play with these here Sandbox
Copy All Attributes
Template that will copy attributes
-
<xsl:template match="@*">
-
<xsl:attribute name="{name(.)}"><xsl:value-of select="."/></xsl:attribute>
-
</xsl:template>
Call this template with:
-
<xsl:apply-templates select="/inp1:TestHandInRectMsg/inp1:P_VARCHAR2_DATA/@*"/>
Supress Text
Place at the end of a document you don't want text to come out of.
-
<xsl:template match="text()">
-
</xsl:template>
XSL Identity Template
Output exactly what is input
-
<xsl:template match="@*|*|processing-instruction()|comment()">
-
<xsl:copy>
-
<xsl:apply-templates select="*|@*|text()|processing-instruction()|comment()"/>
-
</xsl:copy>
-
</xsl:template>
RJM Article Type
Work Notes