Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hello,
We are required to have a solution to accept or reject changes for change tracking.
Is there a CT attibute that can be inserted in the begining of the xml file.
Example CT= ACCEPT -- should accept changes for atict:add
CT=REJECT -- should reject changes for atict:reject
What kind of changes can be made in xslt sheet to process such kind of configuration?
Current XSLT sheet config:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:img="info.evccit.utils" extension-element-prefixes="img"
xmlns:atict="http://www.arbortext.com/namespace/atict" exclude-result-prefixes="atict">
<!-- Change Tracking -->
<xsl:template match="atict:chgm">
<!-- Do nothing. Contains previous content of the markup -->
</xsl:template>
<xsl:template match="atict:*">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="atict:add//text()">
<xsl:element name="ADD">
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>
<xsl:template match="atict:del//text()">
<xsl:element name="DEL">
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>
<!-- Change tracking for headers -->
<xsl:template
match="TECHNAME/atict:del | DMREF/atict:del | INFONAME/atict:del | atict:del//NOEQUIP"> </xsl:template>
<xsl:template match="TECHNAME/atict:add | DMREF/atict:add | INFONAME/atict:add">
<xsl:value-of select="."/>
</xsl:template>
<!-- Change tracking for links -->
<xsl:template match="atict:del//XREFEXT | atict:del//XREF">
<xsl:element name="DEL">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*"/>
</xsl:element>
</xsl:element>
</xsl:template>
Could you please help?
Thanks.