Hello all,
I want to exclude one node (element alone) but copy all of the other
elements. This is the XSLT I have. I want to exclude the "alias" element
alone but it does not work..
Can somebody help?
************
<?xml version="1.0" ?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" >
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @* "/>
</xsl:copy>
</xsl:template>
<xsl:template match="command" >
<xsl:copy-of select="groupId "/>
<xsl:apply-templates select="service InstanceProfile "/>
<xsl:copy-of select="enableV ideo"/>
</xsl:template>
<xsl:template match="serviceI nstanceProfile" >
<serviceInstanc eProfile>
<xsl:copy-of select = "child::*[text()!='alias']"/>
</serviceInstance Profile>
</xsl:template>
</xsl:stylesheet>
I want to exclude one node (element alone) but copy all of the other
elements. This is the XSLT I have. I want to exclude the "alias" element
alone but it does not work..
Can somebody help?
************
<?xml version="1.0" ?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance" >
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @* "/>
</xsl:copy>
</xsl:template>
<xsl:template match="command" >
<xsl:copy-of select="groupId "/>
<xsl:apply-templates select="service InstanceProfile "/>
<xsl:copy-of select="enableV ideo"/>
</xsl:template>
<xsl:template match="serviceI nstanceProfile" >
<serviceInstanc eProfile>
<xsl:copy-of select = "child::*[text()!='alias']"/>
</serviceInstance Profile>
</xsl:template>
</xsl:stylesheet>
Comment