AnsweredAssumed Answered

Updating Team data using custom process

Question asked by roland.parrotte Champion on Jul 19, 2016
Latest reply on Jul 21, 2016 by Chris_Hackett


Attempting to update start/end dates on the TEAM tab, as well as the Staff OBS using a custom process.  First attempt destroyed the Allocation information, due to this limitation: http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1055215.aspx

 

So now XOG'ing out the whole Project, including Team and Allocations, and have successfully used XSL stylesheet to update the Start and End Dates.  However, I can't get the stylesheet to update the StaffOBSUnit:

    <x:parse var="xsl">

      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

        <xsl:output cdata-section-elements="nsql" method="xml"/>

        <xsl:preserve-space elements="nsql"/>

        <xsl:template match="Resource/@resourceID[.='${v_rows.unique_name}']">

          <xsl:attribute name="availTo">

            <xsl:value-of select="'${v_rows.prfinish}'"/>

          </xsl:attribute>

          <xsl:attribute name="availFrom">

            <xsl:value-of select="'${v_rows.prstart}'"/>

          </xsl:attribute>

          <xsl:attribute name="staffOBSUnit">

            <xsl:value-of select="'${v_rows.obs_name}'"/>

          </xsl:attribute>

          <xsl:attribute name="resourceID">

            <xsl:value-of select="'${v_rows.unique_name}'"/>

          </xsl:attribute>

        </xsl:template>

        <xsl:template match="XOGOutput"/>

        <xsl:template match="node()|@*">

          <xsl:copy>

            <xsl:apply-templates select="@*|node()"/>

          </xsl:copy>

        </xsl:template>

      </xsl:stylesheet>

    </x:parse>

    <x:parse var="xml">

      <gel:include select="$v_project_output"/>

    </x:parse>

    <gel:parse var="v_project_output1">

      <x:transform xml="${xml}" xslt="${xsl}"/>

    </gel:parse>

 

Has anyone done anything similar, or can spot why the staffOBSUnit doesn't get updated in  the above XSL, even though the availTo and availFrom does?

Outcomes