cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

CT attribute to accept or reject changes

ppatel-6
2-Explorer

CT attribute to accept or reject changes

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.

0 REPLIES 0
Announcements

Top Tags