Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

CT attribute to accept or reject changes

$
0
0

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.


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>