<?xml version='1.0' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon"  >
<xsl:template match="/">
<TcMSE>
  <!-- ======================================================================================== -->
  <!-- == Header 1                                                                           == -->
  <!-- ======================================================================================== -->
  <Line>
    <Field01>Header1</Field01>
    <Field02>Item 1</Field02>
    <Field03>Item 2</Field03>
    <Field04>Item 3</Field04>
    <Field05>Item 4</Field05>
    <Field06>Item 5</Field06>
    <Field07>Description</Field07>
    <Field08>Type</Field08>
    <Field09>Attribute 01</Field09>
    <Field10>Attribute 02</Field10>
    <Field11>Attribute 03</Field11>
    <Field12>Attribute 04</Field12>
    <Field13>Attribute 05</Field13>
    <Field14>Attribute 06</Field14>
    <Field15>Attribute 07</Field15>
    <Field16>Attribute 08</Field16>
    <Field17>Attribute 09</Field17>
    <Field18>Attribute 10</Field18>
    <Field19>Attribute 11</Field19>
    <Field20>Attribute 12</Field20>
    <Field21>Attribute 13</Field21>
    <Field22>Attribute 14</Field22>
    <Field23>Attribute 15</Field23>
    <Field24>Attribute 16</Field24>
    <Field25>Attribute 17</Field25>
    <Field26>Attribute 18</Field26>
    <Field27>Attribute 19</Field27>
    <Field28>Attribute 20</Field28>
    <Field29>Attribute 21</Field29>
    <Field30>Attribute 22</Field30>
    <Field31>Attribute 23</Field31>
    <Field32>Attribute 24</Field32>
    <Field33>Attribute 25</Field33>
    <Field34>Attribute 26</Field34>
    <Field35>Attribute 27</Field35>
    <Field36>Attribute 28</Field36>
    <Field37>Attribute 29</Field37>
  </Line>

  <!-- ======================================================================================== -->
  <!-- == Header 2                                                                           == -->
  <!-- ======================================================================================== -->
  <Line>
    <Field01>Header2</Field01>
    <Field02>MEProcess</Field02>
    <Field03>MEProcess</Field03>
    <Field04>MEProcess</Field04>
    <Field05>MEProcess</Field05>
    <Field06>MEOP</Field06>
    <Field07/>
    <Field08/>
    <Field09/>
    <Field10>Unit Form</Field10>
    <Field11>Unit Form</Field11>
    <Field12>Unit Form</Field12>
    <Field13>HST Form 01</Field13>
    <Field14>HST Form 02</Field14>
    <Field15>HST Form 03</Field15>
    <Field16>HST Form 04</Field16>
    <Field17>HST Form 05</Field17>
    <Field18>HST Form 06</Field18>
    <Field19>HST Form 07</Field19>
    <Field20>HST Form 08</Field20>
    <Field21>HST Form 09</Field21>
    <Field22>HST Form 10</Field22>
    <Field23>HST Form 11</Field23>
    <Field24>HST Form 12</Field24>
    <Field25>HST Form 13</Field25>
    <Field26>HST Form 14</Field26>
    <Field27>HST Form 15</Field27>
    <Field28>HST Form 16</Field28>
    <Field29>HST Form 17</Field29>
    <Field30>HST Form 18</Field30>
    <Field31>HST Form 19</Field31>
    <Field32>HST Form 30</Field32>
    <Field33>HST Form 31</Field33>
    <Field34>HST Form 32</Field34>
    <Field35>HST Form 33</Field35>
    <Field36>HST Form 34</Field36>
    <Field37>HST Form 35</Field37>
    <Field38>HST Form 36</Field38>
  </Line>

  <!-- ======================================================================================== -->
  <!-- == Header 3                                                                           == -->
  <!-- ======================================================================================== -->
  <Line>
    <Field01>Header3</Field01>
    <Field02>Project</Field02>
    <Field03>Team Zone</Field03>
    <Field04>Process</Field04>
    <Field05>Unit</Field05>
    <Field06>HST</Field06>
    <Field07/>
    <Field08/>
    <Field09/>
    <Field10>AFWorkArea</Field10>
    <Field11>WorkingPoint</Field11>
    <Field12>Processremarks</Field12>
    <Field13>HSTCodeA1</Field13>
    <Field14>HSTCodeB1</Field14>
    <Field15>HSTCodeG</Field15>
    <Field16>HSTCodeA2</Field16>
    <Field17>HSTCodeB2</Field17>
    <Field18>HSTCodeP1</Field18>
    <Field19>HSTCodeOfAction</Field19>
    <Field20>HSTCodeA3</Field20>
    <Field21>HSTCodeB3</Field21>
    <Field22>HSTCodeP2</Field22>
    <Field23>HSTCodeA4</Field23>
    <Field24>HSTCodeA5</Field24>
    <Field25>HSTCodeActionName</Field25>
    <Field26>HSTFreqSelStartIndex</Field26>
    <Field27>HSTFreqSelEndIndex</Field27>
    <Field28>HSTSimoSelIndexes</Field28>
    <Field29>Frequency</Field29>
    <Field30>PartialFrequency</Field30>
    <Field31>HSTTotalTime</Field31>
    <Field32>TotalTMU</Field32>
    <Field33>NetLossCode</Field33>
    <Field34>HSTType</Field34>
    <Field35>HSTCodeSummary</Field35>
    <Field36>Z_Simoto</Field36>
    <Field37>QualityPoint</Field37>
    <Field38>PrintOption</Field38>
  </Line>

  <!-- ======================================================================================== -->
  <!-- == Header 4                                                                           == -->
  <!-- ======================================================================================== -->
  <Line>
    <Field01>Header4</Field01>
    <Field02>Root</Field02>
    <Field03>Team Zone</Field03>
    <Field04>Process</Field04>
    <Field05>Unit</Field05>
    <Field06>OP</Field06>
    <Field07>All</Field07>
    <Field08>Unit</Field08>
    <Field09/>
    <Field10/>
    <Field11/>
    <Field12/>
    <Field13/>
    <Field14/>
    <Field15/>
    <Field16/>
    <Field17/>
    <Field18/>
    <Field19/>
    <Field20/>
    <Field21/>
    <Field22/>
    <Field23/>
    <Field24/>
    <Field25/>
    <Field26/>
    <Field27/>
    <Field28/>
    <Field29/>
    <Field30/>
    <Field31/>
    <Field32/>
    <Field33/>
    <Field34/>
    <Field35/>
    <Field36/>
    <Field37/>
    <Field38/>
	</Line>

  <!-- ======================================================================================== -->
  <!-- == Header 5 / Title Row                                                               == -->
  <!-- ======================================================================================== -->
	<Line>
    <Field01>Title</Field01>
    <Field02>Root</Field02>
    <Field03>Team Name</Field03>
    <Field04>Process Name</Field04>
    <Field05>Unit Name</Field05>
    <Field06>OP Name</Field06>
    <Field07>Description</Field07>
    <Field08>Overwrite Type</Field08>
    <Field09/>
    <Field10/>
    <Field11/>
    <Field12/>
    <Field13/>
    <Field14/>
    <Field15/>
    <Field16/>
    <Field17/>
    <Field18/>
    <Field19/>
    <Field20/>
    <Field21/>
    <Field22/>
    <Field23/>
    <Field24/>
    <Field25/>
    <Field26/>
    <Field27/>
    <Field28/>
    <Field29/>
    <Field30/>
    <Field31/>
    <Field32/>
    <Field33/>
    <Field34/>
    <Field35/>
    <Field36/>
    <Field37/>
    <Field38/>
  </Line>

  <!-- ======================================================================================== -->
  <!-- == Detail Row 1 / Project                                                             == -->
  <!-- ======================================================================================== -->
  <Line>
    <Field01/>
    <Field02>Project</Field02>
    <Field03/>
    <Field04/>
    <Field05/>
    <Field06/>
    <Field07/>
    <Field08/>
    <Field09/>
    <Field10/>
    <Field11/>
    <Field12/>
    <Field13/>
    <Field14/>
    <Field15/>
    <Field16/>
    <Field17/>
    <Field18/>
    <Field19/>
    <Field20/>
    <Field21/>
    <Field22/>
    <Field23/>
    <Field24/>
    <Field25/>
    <Field26/>
    <Field27/>
    <Field28/>
    <Field29/>
    <Field30/>
    <Field31/>
    <Field32/>
    <Field33/>
    <Field34/>
    <Field35/>
    <Field36/>
    <Field37/>
    <Field38/>
  </Line>

  <xsl:for-each select="PDDA/Row">
    <xsl:variable name="WSTeamNo" select="'Test'" saxon:assignable="yes"/>


    <xsl:if test="MOST_SEQ_NO = '1'">
      <!-- ==================================================================================== -->
      <!-- == Detail Row 2 / Team                                                            == -->
      <!-- ==================================================================================== -->
      <Line>
        <Field01/>
        <Field02/>
        <Field03><xsl:value-of select="$WSTeamNo"/></Field03>
        <saxon:assign name="WSTeamNo" select="TEAM_NO"></saxon:assign>
        <Field04><xsl:value-of select="$WSTeamNo"/></Field04>
        <Field05/>
        <Field06/>
        <Field07><xsl:value-of select="TEAM_DESC"/></Field07>
        <Field08/>
        <Field09><xsl:value-of select="TEAM_SEQ"/></Field09>
        <Field10/>
        <Field11/>
        <Field12/>
        <Field13/>
        <Field14/>
        <Field15/>
        <Field16/>
        <Field17/>
        <Field18/>
        <Field19/>
        <Field20/>
        <Field21/>
        <Field22/>
        <Field23/>
        <Field24/>
        <Field25/>
        <Field26/>
        <Field27/>
        <Field28/>
        <Field29/>
        <Field30/>
        <Field31/>
        <Field32/>
        <Field33/>
        <Field34/>
        <Field35/>
        <Field36/>
        <Field37/>
        <Field38/>
      </Line>

      <!-- ==================================================================================== -->
      <!-- == Detail Row 3 / Team                                                            == -->
      <!-- ==================================================================================== -->
      <Line>
        <Field01/>
        <Field02/>
        <Field03/>
        <Field04><xsl:value-of select="PROCESS_NAME"/></Field04>
        <Field05/>
        <Field06/>
        <Field07><xsl:value-of select="PROCESS_NO"/></Field07>
        <Field08/>
        <Field09><xsl:value-of select="PROCESS_SEQ_NO"/></Field09>
        <Field10/>
        <Field11/>
        <Field12/>
        <Field13/>
        <Field14/>
        <Field15/>
        <Field16/>
        <Field17/>
        <Field18/>
        <Field19/>
        <Field20/>
        <Field21/>
        <Field22/>
        <Field23/>
        <Field24/>
        <Field25/>
        <Field26/>
        <Field27/>
        <Field28/>
        <Field29/>
        <Field30/>
        <Field31/>
        <Field32/>
        <Field33/>
        <Field34/>
        <Field35/>
        <Field36/>
        <Field37/>
        <Field38/>
      </Line>

      <!-- ==================================================================================== -->
      <!-- == Detail Row 4 / Team                                                            == -->
      <!-- ==================================================================================== -->
      <Line>
        <Field01/>
        <Field02/>
        <Field03/>
        <Field04/>
        <Field05><xsl:value-of select="UNIT_DESC"/></Field05>
        <Field06/>
        <Field07><xsl:value-of select="UNIT_NO"/></Field07>
        <Field08/>
        <Field09><xsl:value-of select="UNIT_SEQ_NO"/></Field09>
        <Field10/>
        <Field11/>
        <Field12/>
        <Field13/>
        <Field14/>
        <Field15/>
        <Field16/>
        <Field17/>
        <Field18/>
        <Field19/>
        <Field20/>
        <Field21/>
        <Field22/>
        <Field23/>
        <Field24/>
        <Field25/>
        <Field26/>
        <Field27/>
        <Field28/>
        <Field29/>
        <Field30/>
        <Field31/>
        <Field32/>
        <Field33/>
        <Field34/>
        <Field35/>
        <Field36/>
        <Field37/>
        <Field38/>
      </Line>
    </xsl:if>

    <!-- ====================================================================================== -->
    <!-- == Detail Row 5 / Team                                                              == -->
    <!-- ====================================================================================== -->
    <Line>
      <Field01/>
      <Field02/>
      <Field03/>
      <Field04/>
      <Field05/>
      <Field06><xsl:value-of select="WORKING_POINT_DTL"/></Field06>
      <Field07><xsl:value-of select="MOST_SEQ_NO"/></Field07>
      <Field08/>
      <Field09><xsl:value-of select="MOST_SEQ_NO"/></Field09>
      <Field10/>
      <Field11/>
      <Field12/>
      <Field13>H_hstcodea1</Field13>
      <Field14>H_hstcodeb1</Field14>
      <Field15>Hstcodeg</Field15>
      <Field16>Hstcodea2</Field16>
      <Field17>Hstcodeb2</Field17>
      <Field18>Hstcodep1</Field18>
      <Field19>Hstcodeofaction</Field19>
      <Field20>Hstcodea3</Field20>
      <Field22>Hstcodeb3</Field22>
      <Field23>Hstcodep2</Field23>
      <Field23>Hstcodea4</Field23>
      <Field24>Hstcodea5</Field24>
      <Field25>Hstcodeactionname</Field25>
      <Field26>Hstfreqselstartindex</Field26>
      <Field27>Hstfreqselendindex</Field27>
      <Field28>Hstsimoselindexes</Field28>
      <Field29>Hstsimoselindexes</Field29>
      <Field30>H_frequency</Field30>
      <Field31>H_partialfrequency</Field31>
      <Field32>H_hsttotaltime</Field32>
      <Field33>H_hsttotaltmu</Field33>
      <Field34>H_netlosscode</Field34>
      <Field35>H_hstactiontype</Field35>
      <Field36>H_hstcodesummary</Field36>
      <Field37>H_simoto</Field37>
      <Field38/>
      <xsl:if test="MOST_SEQ_NO = '1'">
        <Field38>H_qualitypoint</Field38>
      </xsl:if>
      <Field39>TRUE</Field39>
    </Line>
  </xsl:for-each>


<!-- ==================================================================================== --><!-- == Detail Row 4 / HST                                                             == --><!-- ==================================================================================== -->
    <F_HST>
      <F_Tab1/>
      <F_Tab2/>
      <F_Tab3/>
      <F_Tab4/>
      <F_Tab5/>
      <F_HstDesc>HstDesc</F_HstDesc>
      <F_HstName>HstName</F_HstName>
      <F_Tab8/>
      <F_HstActionSequence>HstActionSequence</F_HstActionSequence>
      <F_Tab10/>
      <F_Tab11/>
      <F_Tab12/>
      <F_HstCodeA1>Hstcodea1</F_HstCodeA1>
      <F_HstCodeB1>Hstcodeb1</F_HstCodeB1>
      <F_HstCodeG>Hstcodeg</F_HstCodeG>
      <F_HstCodeA2>Hstcodea2</F_HstCodeA2>
      <F_HstCodeB2>Hstcodeb2</F_HstCodeB2>
      <F_HstCodeP1>Hstcodep1</F_HstCodeP1>
      <F_HstCodeOfAction>Hstcodeofaction</F_HstCodeOfAction>
      <F_HstCodea3>Hstcodea3</F_HstCodea3>
      <F_HstCodeb3>Hstcodeb3</F_HstCodeb3>
      <F_HstCodep2>Hstcodep2</F_HstCodep2>
      <F_HstCodea4>Hstcodea4</F_HstCodea4>
      <F_HstCodea5>Hstcodea5</F_HstCodea5>
      <F_HstCodeActionName>Hstcodeactionname</F_HstCodeActionName>
      <F_HstFreqSelStartIndex>Hstfreqselstartindex</F_HstFreqSelStartIndex>
      <F_HstFreqSelEndIndex>Hstfreqselendindex</F_HstFreqSelEndIndex>
      <F_HstSimoSelIndexes>Hstsimoselindexes</F_HstSimoSelIndexes>
      <F_HstSimoSelIndexes>Hstsimoselindexes</F_HstSimoSelIndexes>
      <F_Frequency>H_frequency</F_Frequency>
      <F_PartialFrequency>H_partialfrequency</F_PartialFrequency>
      <F_HstTotalTime>H_hsttotaltime</F_HstTotalTime>
      <F_HstTotalTMU>H_hsttotaltmu</F_HstTotalTMU>
      <F_NetlossCode>H_netlosscode</F_NetlossCode>
      <F_HstActionType>H_hstactiontype</F_HstActionType>
      <F_HstCodeSummary>H_hstcodesummary</F_HstCodeSummary>
      <F_Simoto>H_simoto</F_Simoto>
      <F_QualityPoint>H_qualitypoint</F_QualityPoint>
      <F_PrintOption>H_printoption</F_PrintOption>
    </F_HST>
		</TcMSE>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.

<metaInformation>
  <scenarios>
    <scenario default="yes" name="pdda2mse" userelativepaths="yes" externalpreview="no" url="converter:CSV:first=yes:root=PDDA:row=Row?PDDA_GMSUnit_for2012_09012010.csv" htmlbaseurl="" outputurl="converter:TAB:encoding=utf-8:root=TcMSE?TcMSEi.txt"
              processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline=""
              postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/>
  </scenarios>
  <MapperMetaTag>
    <MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="converter:Line:root=TcMSE?TcMSEi.txt" destSchemaRoot="TcMSE" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no">
      <SourceSchema srcSchemaPath="converter:CSV:first=yes:root=PDDA:row=Row?PDDA_GMSUnit_for2012_09012010.csv" srcSchemaRoot="PDDA" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/>
    </MapperInfo>
    <MapperBlockPosition>
      <template match="/">
        <block path="TcMSE/xsl:for-each" x="327" y="162"/>
      </template>
    </MapperBlockPosition>
    <TemplateContext></TemplateContext>
    <MapperFilter side="source"></MapperFilter>
  </MapperMetaTag>
</metaInformation>
-->