Novell is now a part of Micro Focus

Does anyone have an example on an OutPutTransformation...

Articles and Tips: qna

01 Oct 2003


Q.

Does anyone have an example on an OutPutTransformation Event, like removing following events from the XML: ADD, DELETE, MOVE, RENAME, MODIFY?

See the code sample below.

A.

<?xml version='1.0'?>
<xsl:stylesheet
		version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- don't copy through these things -->
<xsl:template match="add | delete | move | rename | modify"/>
<!-- copy through everything else unchanged -->
<xsl:template match="node()|@*">
	<xsl:copy>
		<xsl:apply-templates select="@*|node()"/>
	</xsl:copy>
</xsl:template>
</xsl:stylesheet>

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates