#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0

    How to apply a correct filter to this XML code


    If someone can please advise me on what I'm trying to do. I want to extract a parameter I create called "COST" and use the syntax from another report "Relations and Operations" to be used in a second custom BOM report.xsl

    I have modified the original syntax and stripped it down to this bit of code but I wish to refine even further.



    <!-- ====================Here the info for the relation and parameters script =================================== -->

    <xsl:template name="FullInfoType">

    <xsl:param name="InfoType" select="'Local'"/>


    <xsl:choose>
    <xsl:when test="$InfoType='Local'">
    <xsl:value-of select="'local params'"/>



    </xsl:when>
    </xsl:choose>
    </xsl:template>



    This bit of syntax calls for ALL local parameters to be listed. I only want it to locate a specific parameter called COST in the local parameters and list the parameter called "COST" and it's CURRENT VALUE


    Thanks in advance for any and all help.
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,181
    Rep Power
    9398
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0
    Code:
    <?xml version="1.0"?>
    
    
    <xsl:stylesheet version="1.0" 
      xmlns:xsl="http : //www . w3.org/1999/XSL/ Transform" 
      xmlns:html="http : //www . w3.org/1999 /xhtml"
      xmlns:ext="urn:extension:srch-path"
      exclude-result-prefixes="ext">
    
    <xsl:import href="featinfo_type_VH_10-26-11.xsl"/>
    <xsl:import href="featinfo_table_VH_10-26-11.xsl"/>
    <xsl:import href="featinfo_opers_VH_10-26-11.xsl"/>
    
    
    <xsl:output method="html"/>
    <!-- **********************Here you Can Change the R & P Title**************************** -->
    <xsl:variable name="ModelRels"><?ptc-ostr key="Relations and Parameters"?>Adventure Play Systems Bom Report<?ptc-cstr?></xsl:variable>
    <!-- **********************END R & P Title Change**************************** -->
    
    
    <xsl:variable name="CurrentModelEXT" select="/XML_DOCUMENT/XML_INFO/MODEL/MODEL_ENTRY/MODEL_DATA/@FILE_EXT"/>
    
    <xsl:variable name="PWFEmptyTableStr" select="'---'"/>
    
    
    <!-- ==== -->
    <!-- == Relations and Parameters == -->
    <!-- ==== -->
    
    <xsl:template match="/">
    <xsl:variable name="CssFile" select="ext:srch-path('ftinfoStyle.css')"/>
      <HTML>
        <HEAD>
          <TITLE><xsl:value-of select="$ModelRels"/></TITLE>
          <BASE HREF="file://"/>
          <LINK href="{$CssFile}" rel="stylesheet" type="text/css"/>
        </HEAD>
        <BODY class="tableHdr" BGColor="#FFFFFF" Text="#000000">
          <xsl:call-template name="PWF_DOC_INIT"/>
          <xsl:apply-templates select = "/XML_DOCUMENT/XML_INFO/MODEL/MODEL_ENTRY"/>
          <xsl:call-template name="PWF_DOC_GENERATE"/>
        </BODY>
       </HTML>
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == MODEL_ENTRY == -->
    <!-- ==== -->
    <xsl:template match="MODEL_ENTRY">
      <xsl:apply-templates select = "MODEL_DATA"/>
      <xsl:apply-templates select = "FEAT"/>
      <xsl:apply-templates select = "MODEL_OPERS/RELATIONS[text() != 'NULL']">
        <xsl:with-param name="Report" select="'RelReport'"/>
      </xsl:apply-templates>
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == MODEL_DATA == -->
    <!-- ==== -->
    <xsl:template match="MODEL_DATA">
    
      <xsl:call-template name="PWF_DOC_HEAD">
        <xsl:with-param name="PWFReportName" select="$ModelRels"/>
        <xsl:with-param name="PWFModelName" select="$CurrentModel"/>
      </xsl:call-template>
    
      <br/>
      <br/>
    
      <xsl:call-template name="PWF_INFO_TABLE"/>
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == MODEL_DATA  mode="PWFTableRow" == -->
    <!-- ==== -->
    
    <xsl:template match="MODEL_DATA" mode="PWFTableRow">
      <xsl:variable name="ModelNameStr"><?ptc-ostr key="_type_ NAME : "?> <xsl:apply-templates select="." mode="PWFModelTypeName"/> NAME : <?ptc-cstr?></xsl:variable>
    
      <xsl:variable name="SubType">
        <xsl:apply-templates select = "." mode="PWFReportModelSubType"/>
      </xsl:variable>
    
      <tr>
        <td class="projectinfolabelfont"><xsl:value-of select="$ModelNameStr"/></td>
        <td class="tabledatafont"><xsl:value-of select="$CurrentModel"/></td>
       <td align="center">
          <xsl:call-template name="PWF_IMAGE_BY_TYPE_BIG">
            <xsl:with-param name="PWFObjectType" select="@TYPE"/>
            <xsl:with-param name="PWFObjectSubType" select="$SubType"/>
          </xsl:call-template>
        </td>
      </tr>
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == FEAT == -->
    <!-- ==== -->
    <xsl:template match="FEAT">
    <!-- Table with Title -->
      <xsl:variable name="Title"><?ptc-ostr key="FEATURE CONTAINING RELS/PARAM"?>Features Containing Relations/Parameters<?ptc-cstr?></xsl:variable>
    
      <xsl:variable name="Scrolling">
        <xsl:choose>
          <xsl:when test="count(FEAT_ENTRY) > 4">TRUE</xsl:when>
          <xsl:otherwise>FALSE</xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
    
      <br/>
      <xsl:call-template name="PWF_INFO_TABLE_USE_JS">
          <xsl:with-param name="UniqueName" select="'SOLID_RELS_FEAT_TABLE'"/>
          <xsl:with-param name="TableTitle" select="$Title"/>
          <xsl:with-param name="TableScrolling" select="$Scrolling"/>
      </xsl:call-template>
      <br/>
    <!-- End of Table with Title -->
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == Feature list Table (Columns Label) == -->
    <!-- ==== -->
    <xsl:template match="FEAT" mode="PWFTableLabel">
      <script>
        addTableHeader ( '<?ptc-ostr escape_quotes="true" key="ID"?>ID<?ptc-cstr?>' , 
                         'ID' , numCmpFunc , "Yes" );
        addTableHeader ( '<?ptc-ostr escape_quotes="true" key="NAME"?>Name<?ptc-cstr?>' , 
                         'NAME' , linkCmpFunc , "Yes" );
        addTableHeader ( '<?ptc-ostr escape_quotes="true" key="TYPE"?>Type<?ptc-cstr?>' , 
                         'TYPE' , stringCmpFunc , "Yes" );
        addTableHeader ( '<?ptc-ostr escape_quotes="true" key="Actions"?>Actions<?ptc-cstr?>' , 
                         'ACTIONS' , null , "No" );
      </script>
    </xsl:template>
    
    <xsl:template match="FEAT" mode="PWFTableRow">
      <xsl:apply-templates select = "FEAT_ENTRY/FEAT_DATA"/>
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == Feature list Table (Rows data) == -->
    <!-- ==== -->
    
    <xsl:template match="FEAT_ENTRY/FEAT_DATA">
    
    <xsl:variable name="featureID">
       <xsl:value-of select="FEATURE_ID/@ID"/>
    </xsl:variable>
    
     <xsl:variable name="featureName"> 
       <xsl:choose>
         <xsl:when test="FEATURE_ID/@NAME != 'NULL'">
           <xsl:value-of select="FEATURE_ID/@NAME"/>
         </xsl:when>
         <xsl:otherwise><xsl:value-of select="$PWFEmptyTableStr"/></xsl:otherwise>
       </xsl:choose>
      </xsl:variable>
    
      <xsl:variable name="link">
        <xsl:call-template name="PWF_CREATE_HIGHLIGHT_INFO_STRING">
          <xsl:with-param name="ModelName" select="$CurrentModel"/>
          <xsl:with-param name="ModelExt" select="$CurrentModelEXT"/>
          <xsl:with-param name="ID" select="$featureID"/>
          <xsl:with-param name="Name" select="$featureName"/>
        </xsl:call-template>
      </xsl:variable>
    
      <xsl:variable name="actions">
        <xsl:call-template name="PWF_ACTION_TABLE_USE_JS">
          <xsl:with-param name="PWFTableActModelName" select="$CurrentModel"/>
          <xsl:with-param name="PWFTableActModelExt" select="$CurrentModelEXT"/>
          <xsl:with-param name="PWFTableActModelID" select="$featureID"/>
          <xsl:with-param name="PWFTableActInfoStr" select="'ActInfo'"/>
          <xsl:with-param name="PWFTableActHiliteStr" select="'ActHilite'"/>
        </xsl:call-template>
      </xsl:variable>
    
      <xsl:variable name="escaped_featureID">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$featureID"/>
        </xsl:call-template>
      </xsl:variable> 
    
      <xsl:variable name="escaped_link">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$link"/>
        </xsl:call-template>
      </xsl:variable> 
    
      <xsl:variable name="escaped_TYPE">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="FEAT_TYPE/@TYPE"/>
        </xsl:call-template>
      </xsl:variable> 
    
      <xsl:variable name="escaped_actions">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$actions"/>
        </xsl:call-template>
      </xsl:variable> 
    
      <script>
        addTableRow ( '<xsl:value-of select="$escaped_featureID"/>' , 
                      '<xsl:value-of select="$escaped_link"/>' , 
                      '<xsl:value-of select="$escaped_TYPE"/>' , 
                      '<xsl:value-of select="$escaped_actions"/>' );
      </script>
    
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == RELATIONS mode="PWFTableRow" == -->
    <!-- ==== -->
    <xsl:template match="RELATIONS[text() != 'NULL']" mode="PWFTableRow">
      <xsl:param name="UserData" select="'NULL'"/>
    
      <xsl:if test="$UserData = 'RelReport'">
        <xsl:apply-templates select="PART_LIST[text() != 'NULL']" mode="RelReport"/>
        <xsl:apply-templates select="PART_POST_LIST[text() != 'NULL']"/>
        <xsl:apply-templates select="SEC_LIST/SEC_LIST_ENTRY[text() != 'NULL']"/>
      </xsl:if>
    </xsl:template>
    
    <!-- ==== -->
    <!-- == PART_LIST == -->
    <!-- ==== -->
    <xsl:template match="PART_LIST" mode="RelReport">
      <tr>
        <xsl:call-template name="PWF_ADD_TABLE_BG_ATTR">
          <xsl:with-param name="PWFTableRowPos" select="'0'"/>
        </xsl:call-template>
    
        <td NOWRAP="TRUE" colspan="3"><div align="center"><font class="basefont"><B>
          <?ptc-ostr key="RELATIONS FOR "?>Relations for <?ptc-cstr?><xsl:value-of select="$CurrentModel"/><xsl:text>:</xsl:text>
        </B></font></div></td>
      </tr>
      <tr>
        <xsl:call-template name="PWF_ADD_TABLE_BG_ATTR">
          <xsl:with-param name="PWFTableRowPos" select="'0'"/>
        </xsl:call-template>
    
        <td NOWRAP="TRUE" colspan="3"><div align="center"><font class="basefont"><B>
           <?ptc-ostr key="Initial Relations"?>Initial Relations<?ptc-cstr?>
        </B></font></div></td>
      </tr>
    
      <xsl:apply-templates select="NEW_RELS/NEW_RELS_ENTRY"/>
    </xsl:template>
    
    </xsl:stylesheet>
    
    
    
    <!-- ==== -->
    <!-- == end of file solid_rels.xsl == -->
    <!-- ==== -->
    The second file "featinfo_opers_VH-10-26-11.xsl" has this code:
    Code:
    <?xml version="1.0"?>
    
    <!--***
    * File : featinfo_opers.xsl
    *
    ***-->
    
    <xsl:stylesheet version="1.0"
      xmlns:xsl="TEMP REMOVED"
      xmlns:html="TEMP REMOVED">
    
    <xsl:output method="html"/>
    
    
    
    <!-- = -->
    <!-- == INFO_PARAMS == -->
    <!-- ============ -->
    
    <xsl:template match="INFO_PARAMS[text() != 'NULL']">
      <xsl:if test="INFO_PARAMS_ENTRY[@PARAM_TYPE='local params']">
        <xsl:apply-templates select="." mode="Local"/>
      </xsl:if>
    
      </xsl:template>
    
    <!-- =========== -->
    
    <xsl:template match="INFO_PARAMS" mode="Local">
      <xsl:variable name="Scrolling">
        <xsl:choose>
          <xsl:when test="count(INFO_PARAMS_ENTRY[@PARAM_TYPE='local params']) > 20">TRUE</xsl:when>
          <xsl:otherwise>FALSE</xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
    
      <br/>
        <xsl:call-template name="PWF_INFO_TABLE_USE_JS">
          <xsl:with-param name="TableTitle" ><?ptc-ostr key="Local Parameters"?>Local Parameters<?ptc-cstr?></xsl:with-param>
          <xsl:with-param name="TableScrolling" select="$Scrolling"/>
          <xsl:with-param name="TableUserData" select="'Local'"/>
          <xsl:with-param name="UniqueName" select="'INFO_PARAMS_Local'"/>
        </xsl:call-template>
      <br/>
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == INFO_PARAMS mode="PWFTableLabel"== -->
    <!-- ==Here is where the columns for the Relations table get their name== -->
    
    <xsl:template match="INFO_PARAMS[text() != 'NULL']" mode="PWFTableLabel">
    <xsl:param name="UserData"/>
    
      <xsl:variable name="Type">
        <xsl:call-template name="FullInfoType">
           <xsl:with-param name="InfoType" select="$UserData"/>
        </xsl:call-template>
      </xsl:variable>
    
      <script>
        addTableHeader ( "<?ptc-ostr escape_quotes="true" key="Symbolic constant"?>aSymbolic constant<?ptc-cstr?>" , 
                         "Symbolic_constant" , stringCmpFunc , "Yes" ) ;
      </script>
    
      <xsl:if test="INFO_PARAMS_ENTRY[@X_REF!= 'NULL'][@PARAM_TYPE=$Type]">
        <script>
          addTableHeader ( "<?ptc-ostr escape_quotes="true" key="X-refs"?>X-refs<?ptc-cstr?>" , 
                           "X_refs" , stringCmpFunc , "Yes" ) ;
        </script>
      </xsl:if>
    
    
    
      <script>
        addTableHeader ( "<?ptc-ostr escape_quotes="true" key="Current value"?>aaCurrent value<?ptc-cstr?>" , 
                         "Current_value" , stringCmpFunc , "Yes" ) ;
      </script>
    
    
    
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == INFO_PARAMS mode="PWFTableRow" == -->
    <!-- ==== -->
    
    <xsl:template match="INFO_PARAMS[text() != 'NULL']" mode="PWFTableRow">
      <xsl:param name="UserData"/>
    
      <xsl:variable name="Type">
        <xsl:call-template name="FullInfoType">
           <xsl:with-param name="InfoType" select="$UserData"/>
        </xsl:call-template>
      </xsl:variable>
    
      
      
    
      <xsl:apply-templates select="INFO_PARAMS_ENTRY[@PARAM_TYPE=$Type]">
    
      </xsl:apply-templates> 
    </xsl:template>
    
    <!-- ==Here the info for the relation and parameters script is located== -->
    
    <xsl:template name="FullInfoType">
    
      <xsl:param name="InfoType" select="'Local'"/>
    
    
    <xsl:choose>
    
        <xsl:when test="$InfoType='Local'"> <!-- Deleting this will remove the local parameters --> 
                    
          <xsl:value-of select="'local params'"/>
    
           </xsl:when>
      </xsl:choose> 
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- ==INFO_PARAMS/INFO_PARAMS_ENTRY == -->
    <!-- ==== -->
    
    <xsl:template match="INFO_PARAMS/INFO_PARAMS_ENTRY">
    
      <script> 
        addTableRow ();
      </script>
    <!--  Here is where the names come in for the Parameters in the R&P -->
      <xsl:variable name="symbol">
        <xsl:choose>
          <xsl:when test="@SYMBOL!='NULL'"><xsl:value-of select="@SYMBOL"/></xsl:when>
          <xsl:otherwise><xsl:value-of select="$PWFEmptyTableStr"/></xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
      <xsl:variable name="escaped_symbol">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$symbol"/>
        </xsl:call-template>
      </xsl:variable> 
      <script>
        appendCellsToTableRow ('<xsl:value-of select="$escaped_symbol"/>');
      </script>
    
    <!-- END R&P Names-->
    
    <!-- Unable to remove -->
      <xsl:variable name="Val">
        <xsl:if test="SYMBOL_VALUE !='NULL'">
          <xsl:apply-templates select="SYMBOL_VALUE/SYM_STRING"/>
        </xsl:if>
      </xsl:variable>
    <!-- END Unable to remove -->
    
      <xsl:variable name="symbol">
        <xsl:choose>
    
    <!-- Temporary hack by Eyal request -->
          <xsl:when test="@SYMBOL='PTC_CATALOG_PART_URL'">
            <xsl:text>&lt;A href="proep://local_proesession?url=</xsl:text><xsl:value-of select="$Val"/><xsl:text>&amp;browser=Catalogs&amp;action=open_url"&gt; </xsl:text><xsl:value-of select="$Val"/><xsl:text>&lt;/A&gt;</xsl:text>
          </xsl:when>
    
    <!-- End of hack -->
        
      <xsl:when test="SYMBOL_VALUE !='NULL'">
            <xsl:value-of select="$Val"/>
          </xsl:when>
          <xsl:otherwise><xsl:value-of select="$PWFEmptyTableStr"/></xsl:otherwise>
       </xsl:choose>
      </xsl:variable>
      <xsl:variable name="escaped_symbol">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$symbol"/>
        </xsl:call-template>
      </xsl:variable> 
      <script>
        appendCellsToTableRow ('<xsl:value-of select="$escaped_symbol"/>');
      </script>
    
    </xsl:template>
    </xsl:stylesheet>
    The third file "featinfo_type_VH-10-26-11.xsl" has this code:
    Code:
    <?xml version="1.0"?>
    
    <!--
    *
    * Description :
    *-->
    
    <xsl:stylesheet version="1.0"
      xmlns:xsl="temp removed" 
      xmlns:html="temp removed"
      xmlns:ext="urn:extension:srch-path"
      exclude-result-prefixes="ext">
    
    <xsl:output method="html"/>
    
    <!-- == PWF_IMAGE_BY_TYPE_LOW_NAME == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_IMAGE_BY_TYPE_LOW_NAME">
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_IMAGE_BY_TYPE_LOW == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_IMAGE_BY_TYPE_LOW">
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_IMAGE_BY_TYPE_BIG == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_IMAGE_BY_TYPE_BIG">
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == SYM_STRING == -->
    <!-- ==== -->
    
    <xsl:template match="SYM_STRING/SYM_STRING_ENTRY">
    
      <xsl:choose>
        <xsl:when test="@WSTRING != 'NULL'"><xsl:value-of select="@WSTRING"/></xsl:when>
      </xsl:choose>
    
    </xsl:template>
    
    <!-- -->
    <xsl:template match="SYM_STRING">
      <xsl:apply-templates select="SYM_STRING_ENTRY"/>
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_INFO_URI_PATH == -->
    <!-- ==== -->
    
    <!--
        This template is needed in order to to handle problem with IE
        IE can't handle escaped characteres if the path is not URI.
        IE can't recognize absolute path as URI without prefix "file:///"
    -->
    
    <xsl:template name="PWF_INFO_URI_PATH">
      <xsl:param name="path"/>
    
      <xsl:text>file:///</xsl:text>
      <xsl:value-of select="$path"/>
    </xsl:template>
    
    
    </xsl:stylesheet>
    <!-- == end of file featinfo_type.xsl == -->
    this is part 1 of 2 for the reply since it over ran the character limits
    Last edited by requinix; October 26th, 2011 at 12:54 PM.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0
    The forth file "featinfo_table_VH-10-26-11.xsl" has this code:

    Code:
    <?xml version="1.0"?>
    
    <!--
    * File : featinfo_table.xsl
    *-->
    
    <xsl:stylesheet version="1.0"
      xmlns:xsl="TEMP REMOVED"
      xmlns:html="TEMP REMOVED"
      xmlns:ext="urn:extension:srch-path"
      exclude-result-prefixes="ext">
    
    <xsl:import href="featinfo_type_VH_10-26-11.xsl"/>
    
    <xsl:output method="html"/>
    
    <!-- ==== -->
    <!-- == Images definition == -->
    <!-- ==== -->
    
    <xsl:variable name="SpGif">
      <xsl:call-template name="PWF_INFO_URI_PATH">
        <xsl:with-param name="path" select="ext:srch-path('sp.gif')"/>
      </xsl:call-template>
    </xsl:variable>
    
    <xsl:variable name="DownArrow"> 
      <xsl:call-template name="PWF_INFO_URI_PATH">
        <xsl:with-param name="path" select="ext:srch-path('downarrow.gif')"/>
      </xsl:call-template>
    </xsl:variable>
    
    <xsl:variable name="UpArrow"> 
      <xsl:call-template name="PWF_INFO_URI_PATH">
        <xsl:with-param name="path" select="ext:srch-path('uparrow.gif')"/>
      </xsl:call-template>
    </xsl:variable>
    
    <xsl:variable name="HorzArrow"> 
      <xsl:call-template name="PWF_INFO_URI_PATH">
        <xsl:with-param name="path" select="ext:srch-path('horzarrow.gif')"/>
      </xsl:call-template>
    </xsl:variable>
    
    <!-- ==== -->
    <!-- == PWF_DOC_INIT == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_DOC_INIT">
      <xsl:variable name="TABLE_OBJ" select="ext:srch-path('table_obj.js')"   />
      <xsl:variable name="SORT_OBJ" select="ext:srch-path('sort_funcs_for_table.js')"   />
      <script type="text/javascript" src="file:///{$TABLE_OBJ}" />
      <script type="text/javascript" src="file:///{$SORT_OBJ}" />
        <script>
          Initialize_images ( '<xsl:value-of select = "$SpGif"/>' , 
                              '<xsl:value-of select = "$DownArrow"/>' , 
                              '<xsl:value-of select = "$UpArrow"/>' , 
                              '<xsl:value-of select = "$HorzArrow"/>' )
        </script>
              
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == PWF_DOC_GENERATE == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_DOC_GENERATE">
      <script>
        generateAllTables ()
      </script>
              
    </xsl:template>
    
    
    
    <!-- ==== -->
    <!-- == PWF_DOC_HEAD == -->
    <!-- ==This is the header code== -->
    
    <xsl:template name="PWF_DOC_HEAD">
      <xsl:param name="PWFReportName" select="'Report'"/>
      <xsl:param name="PWFModelName"  select="''" />
      
    <table cellpadding="0" cellspacing="0" border="0" background="{$SpGif}">
      <tr> 
        <td><img src="{$SpGif}" width="1" height="1"/></td>
        <td><img src="{$SpGif}" width="1" height="1"/></td>
        <td class="footerbg" colspan="2"><img src="{$SpGif}" width="1" height="1"/></td>
        <td><img src="{$SpGif}" width="1" height="1"/></td>
        <td><img src="{$SpGif}" width="1" height="1"/></td>
      </tr>
      <tr> 
        <td><img src="{$SpGif}" width="1" height="1"/></td>
        <td class="footerbg"><img src="{$SpGif}" width="1" height="1"/></td>
        <td class="footerbg"><img src="{$SpGif}" width="100" height="1"/></td>
        <td class="footerbg"><img src="{$SpGif}" width="50" height="1"/></td>
        <td class="footerbg"><img src="{$SpGif}" width="1" height="1"/></td>
        <td><img src="{$SpGif}" width="1" height="1"/></td>
      </tr>
      <tr> 
        <td class="footerbg"><img src="{$SpGif}" width="1" height="1"/></td>
        <td class="footerbg"><img src="{$SpGif}" width="1" height="1"/></td>
        <td class="footerbg" width="100%">
          <img src="{$SpGif}" width="10" height="5"/>
          <font face="Arial, Helvetica, sans-serif" class="wizardtitlefont">
          <xsl:value-of select = "$PWFReportName"/> 
          <xsl:if test="$PWFModelName != ''">
            <xsl:text> : </xsl:text>
            <xsl:value-of select = "$PWFModelName"/>
          </xsl:if>
          </font>
        </td>
        <td class="footerbg"><img src="{$SpGif}" width="1" height="1"/></td>
        <td class="footerbg"><img src="{$SpGif}" width="1" height="1"/></td>
      </tr>
    </table>
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_ACTION_TABLE == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_ACTION_TABLE">
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- ==PWF_ACTION_TABLE_USE_JS == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_ACTION_TABLE_USE_JS">
    
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_ADD_TABLE_BG_ATTR == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_ADD_TABLE_BG_ATTR">
      <xsl:param name="PWFTableRowPos" select="'1'"/>
    
      <xsl:variable name="TableRowBg">
        <xsl:choose>
          <xsl:when test="$PWFTableRowPos mod 2 = 1">
            tableoddrowbg
          </xsl:when>
          <xsl:otherwise>
            tableevenrowbg
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
    
      <xsl:attribute name="class" >
        <xsl:value-of select="$TableRowBg"/>
      </xsl:attribute>
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_INFO_TABLE_ROWS_USE_JS == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_INFO_TABLE_ROWS_USE_JS">
      <xsl:param name="UserData"/>
      
      <xsl:param name="UniqueName"/>
    
      <div id="TABLE_{$UniqueName}">
      <xsl:call-template name="PWF_INFO_TABLE_ROWS">
        <xsl:with-param name="UserData" select="$UserData"/>
       
      </xsl:call-template>
      </div>
    
    </xsl:template>
    
    
    <!-- ==== -->
    
    <!-- == PWF_INFO_TABLE_ROWS == -->
    <!-- ==Here is where the parameters are called out from featinfo_opers_VH...xsl== -->
    
    <xsl:template name="PWF_INFO_TABLE_ROWS">
      <xsl:param name="UserData"/>
    
      <table cellpadding="5" cellspacing="0" border="0" class="tablecellsepbg" width="100%">
        <tr> 
          <xsl:apply-templates select="." mode="PWFTableLabel">
            <xsl:with-param name="UserData" select="$UserData"/>
           </xsl:apply-templates>
        </tr>
        <xsl:apply-templates select="." mode="PWFTableRow">
          <xsl:with-param name="UserData" select="$UserData"/>
        </xsl:apply-templates>
      </table>
    
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_INFO_TABLE == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_INFO_TABLE">
    
      <xsl:param name="TableTitle"      select="'NULL'"/>
      <xsl:param name="TableScrolling"  select="'FALSE'"/>
      <xsl:param name="TableScrolDoubSize" select="150"/>
    
      <xsl:param name="TableUserData"   select="'NULL'"/>
    
      <xsl:param name="UniqueName"      select="'NULL'"/>
      
      <table cellpadding="0" cellspacing="0" border="0" background="{$SpGif}" class="bodybg" >
        <ptc_no_spacing>
        <div ptc="ptc_no_spacing">
        </div>
        <tr> 
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline" colspan="5"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <tr> 
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
          <td ><img src="{$SpGif}" width="10" height="1"/></td>
          <td ><img src="{$SpGif}" width="10" height="1"/></td>
          <td ><img src="{$SpGif}" width="10" height="1"/></td>
          <td ><img src="{$SpGif}" width="10" height="1"/></td>
          <td ><img src="{$SpGif}" width="10" height="1"/></td>
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <div ptc="ptc_yes_spacing">
        </div>
        </ptc_no_spacing>
        <xsl:choose>
          <xsl:when test="$TableTitle = '@AppDefined'"> <!-- Special case -->
            <xsl:apply-templates select="." mode="PWFTableTitle">
              <xsl:with-param name="UserData" select="$TableTitleUserData"/>
            </xsl:apply-templates>
          </xsl:when>
          <xsl:when test="$TableTitle != 'NULL'">
            <xsl:choose>
              <xsl:when test="$UniqueName != 'NULL'">
                <xsl:call-template name="PWF_INFO_TABLE_TITLE_USE_JS">
                  <xsl:with-param name="EscapedTitleLabel" select="$EscapedTableTitle"/>
                  <xsl:with-param name="TitleLabel" select="$TableTitle"/>
                  <xsl:with-param name="UserData" select="$TableTitleUserData"/>
                </xsl:call-template>
              </xsl:when>
              <xsl:otherwise>
                <xsl:call-template name="PWF_INFO_TABLE_TITLE">
                  <xsl:with-param name="TitleLabel" select="$TableTitle"/>
                  <xsl:with-param name="UserData" select="$TableTitleUserData"/>
                </xsl:call-template>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:when>
        </xsl:choose>
        <tr> 
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="wizardstepsfont" colspan="5" rowspan="5"> 
            <div>
                    <xsl:if test="$TableScrolling != 'FALSE'">
                      <xsl:attribute name="style">height: <xsl:value-of select="$TableScrolDoubSize"/>px; overflow: auto</xsl:attribute>
                    </xsl:if>
            <xsl:choose>
              <xsl:when test="$UniqueName != 'NULL'">
                        <xsl:call-template name="PWF_INFO_TABLE_ROWS_USE_JS">
                          <xsl:with-param name="UserData" select="$TableUserData"/>
                    
                          <xsl:with-param name="UniqueName" select="$UniqueName"/>
                        </xsl:call-template>
              </xsl:when>
              <xsl:otherwise>
                        <xsl:call-template name="PWF_INFO_TABLE_ROWS">
                          <xsl:with-param name="UserData" select="$TableUserData"/>
                        
                        </xsl:call-template>
              </xsl:otherwise>
            </xsl:choose>
                    </div>
          </td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <ptc_no_spacing>
        <div ptc="ptc_no_spacing">
        </div>
        <tr> 
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <tr> 
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <tr> 
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <tr> 
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <tr> 
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
          <td><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="wizardstepsfont" colspan="5"><img src="{$SpGif}" width="1" height="10"/><img src="{$SpGif}" width="1" height="1"/></td>
          <td ><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <tr> 
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline" ><img src="{$SpGif}" width="1" height="1"/></td>
          <td colspan="5"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline" ><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="tableHdr" ><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        <tr> 
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="btnOutline" valign="top" colspan="5"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
          <td class="tableHdr"><img src="{$SpGif}" width="1" height="1"/></td>
        </tr>
        </ptc_no_spacing>
      </table>
    
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_INFO_TABLE_USE_JS == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_INFO_TABLE_USE_JS">
      <xsl:param name="TableUserData"   select="'NULL'"/>
      <xsl:param name="UniqueName"/>
       
      <script>
        addTable ('<xsl:value-of select="$UniqueName"/>')
      </script>
    
      <xsl:call-template name="PWF_INFO_TABLE">
          <xsl:with-param name="TableUserData"   select="$TableUserData"/>
          <xsl:with-param name="UniqueName"      select="$UniqueName"/>
      </xsl:call-template>
    
    </xsl:template>
    
    <!-- ==== -->
    <!-- == PWF_INFO_TABLE_TITLE == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_INFO_TABLE_TITLE">
    <xsl:param name="TitleLabel" select="'NoTitle'"/>
      <xsl:param name="TitleType" select="'String'"/>
    
      <tr>
        <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
        <td><img src="{$SpGif}" width="1" height="1"/></td>
        <td nowrap="TRUE" class="tabletitlebg" background="{$SpGif}" width="100%">
          <font class="tabletitlefont">
            <img src="{$SpGif}" width="15" height="20" align="absmiddle"/>
            <xsl:choose>
              <xsl:when test="$TitleType='Node-Set'">
                <xsl:copy-of select="$TitleLabel"/>
              </xsl:when>
              <xsl:otherwise>
                <xsl:value-of select="$TitleLabel"/>
              </xsl:otherwise>
            </xsl:choose>
          </font>
        </td>
        <td><img src="{$SpGif}" width="15" height="22"/></td>
        <td align="left" colspan="2"><img src="{$SpGif}" width="2" height="5"/></td>
        <td align="left"><img src="{$SpGif}" width="1" height="1"/></td>
        <td><img src="{$SpGif}" width="1" height="1"/></td>
        <td class="btnOutline"><img src="{$SpGif}" width="1" height="1"/></td>
      </tr>
    
    </xsl:template>
    
    <!-- ==== -->
    <!-- == PWF_INFO_TABLE_TITLE_USE_JS == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_INFO_TABLE_TITLE_USE_JS">
      <xsl:param name="EscapedTitleLabel" select="'NoTitle'"/>
      <xsl:param name="TitleLabel" select="'NoTitle'"/>
      <xsl:param name="TitleType" select="'String'"/>
    
      <xsl:variable name="title">
        <xsl:choose>
          <xsl:when test="$TitleType='Node-Set'">
            <xsl:copy-of select="$EscapedTitleLabel"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$EscapedTitleLabel"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
    
      <script>
        addTableTitle ('<xsl:value-of select="$title"/>')
      </script>
    
      <xsl:call-template name="PWF_INFO_TABLE_TITLE">
    <!-- Here is where the title for the light brown row is located -->
        <xsl:with-param name="TitleLabel" select="$TitleLabel"/>
        <xsl:with-param name="TitleType" select="$TitleType"/>
    <!--***-->
      </xsl:call-template>
    </xsl:template>
    
    
    <!-- ==== -->
    <!-- == PWF_CREATE_HIGHLIGHT_INFO_STRING == -->
    <!-- ==== -->
    
    <xsl:template name="PWF_CREATE_HIGHLIGHT_INFO_STRING">
    </xsl:template>
    
    <!-- ==== -->
    <!-- == ESCAPE_EPOS == -->
    <!-- ==== -->
    
    <xsl:template name="ESCAPE_EPOS">
      <xsl:param name="string" />
      <xsl:variable name="apos" select='"&apos;"'/>
      <xsl:choose>
        <xsl:when test='contains($string, $apos)'>
          <xsl:value-of select="substring-before($string, $apos)"/>
          <xsl:text>\'</xsl:text>
          <xsl:call-template name="ESCAPE_EPOS">
            <xsl:with-param name="string" select="substring-after($string, $apos)" />
          </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$string" />
        </xsl:otherwise>
      </xsl:choose>
    </xsl:template>
    
    
    </xsl:stylesheet>
    Last edited by requinix; October 26th, 2011 at 12:53 PM.
  8. #5
  9. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,181
    Rep Power
    9398
    It looks like part of the first file got cut off. Can you edit your post and fix that? Be sure to keep the &amp;#91;code] tags I added.
    Speaking of, use &amp;#91;code] tags when posting stuff like XML.

    Speaking of, what's the actual XML you're dealing with? Not the XSLT you're using but the source XML data the transformations are being applied to.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0
    I have edited the post and sorry for overlooking the first set of code.

    When I run a report it open a window within the drawing software (pro eng, wild fire 4.0)
  12. #7
  13. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,181
    Rep Power
    9398
    It's hard to say without seeing the source XML or the outputted HTML, but I think you want to be modifying stuff involving INFO_PARAMS_ENTRY nodes.
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0
    Morning, This is the HTML output file if this helps

    Code:
    <HTML xmlns:html="http://www.w3.org/1999/xhtml">
    <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <TITLE>Adventure Play Systems Bom Report</TITLE>
    <BASE HREF="file://">
    <LINK href="C:/Program Files (x86)/proeWildfire 4.0/proe/prowttools/text/scripts/ftinfoStyle.css" rel="stylesheet" type="text/css">
    </HEAD>
    <BODY class="tableHdr" BGColor="#FFFFFF" Text="#000000">
    <script type="text/javascript" src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/scripts/table_obj.js"></script><script type="text/javascript" src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/scripts/sort_funcs_for_table.js"></script><script>
          Initialize_images ( 'file:///C:/Program Files (x86)/proeWildfire 4.0/proe/prowttools/text/images/sp.gif' , 
                              'file:///C:/Program Files (x86)/proeWildfire 4.0/proe/prowttools/text/images/downarrow.gif' , 
                              'file:///C:/Program Files (x86)/proeWildfire 4.0/proe/prowttools/text/images/uparrow.gif' , 
                              'file:///C:/Program Files (x86)/proeWildfire 4.0/proe/prowttools/text/images/horzarrow.gif' )
        </script>
    <table cellpadding="0" cellspacing="0" border="0" background="file:///C:/Program Files (x86)/proeWildfire 4.0/proe/prowttools/text/images/sp.gif">
    <tr>
    <td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="footerbg" colspan="2"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="footerbg"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="footerbg"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="100" height="1"></td><td class="footerbg"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="50" height="1"></td><td class="footerbg"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="footerbg"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="footerbg"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="footerbg" width="100%"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="5"><font face="Arial, Helvetica, sans-serif" class="wizardtitlefont">Adventure Play Systems Bom Report : 214POSTCAP_RED_2</font></td><td class="footerbg"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="footerbg"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    </table>
    <br>
    <br>
    <table cellpadding="0" cellspacing="0" border="0" background="file:///C:/Program Files (x86)/proeWildfire 4.0/proe/prowttools/text/images/sp.gif" class="bodybg">
    <ptc_no_spacing>
    <div ptc="ptc_no_spacing"></div>
    <tr>
    <td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline" colspan="5"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <div ptc="ptc_yes_spacing"></div>
    </ptc_no_spacing>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="wizardstepsfont" colspan="5" rowspan="5">
    <div>
    <table cellpadding="5" cellspacing="0" border="0" class="tablecellsepbg" width="100%">
    <tr></tr>
    <tr>
    <td class="projectinfolabelfont"> NAME : </td><td class="tabledatafont">214POSTCAP_RED_2</td><td align="center"></td>
    </tr>
    </table>
    </div>
    </td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <ptc_no_spacing>
    <div ptc="ptc_no_spacing"></div>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="wizardstepsfont" colspan="5"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="10"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td colspan="5"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline" valign="top" colspan="5"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    </ptc_no_spacing>
    </table>
                            
                            NULL
                            NULL
                            <br>
    <script>
        addTable ('INFO_PARAMS_Local')
      </script>
    <table cellpadding="0" cellspacing="0" border="0" background="file:///C:/Program Files (x86)/proeWildfire 4.0/proe/prowttools/text/images/sp.gif" class="bodybg">
    <ptc_no_spacing>
    <div ptc="ptc_no_spacing"></div>
    <tr>
    <td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline" colspan="5"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="10" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <div ptc="ptc_yes_spacing"></div>
    </ptc_no_spacing>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="wizardstepsfont" colspan="5" rowspan="5">
    <div>
    <div id="TABLE_INFO_PARAMS_Local">
    <table cellpadding="5" cellspacing="0" border="0" class="tablecellsepbg" width="100%">
    <tr>
    <script>
        addTableHeader ( "aSymbolic constant" , 
                         "Symbolic_constant" , stringCmpFunc , "Yes" ) ;
      </script><script>
        addTableHeader ( "aaCurrent value" , 
                         "Current_value" , stringCmpFunc , "Yes" ) ;
      </script>
    </tr>
    <script> 
        addTableRow ();
      </script><script>
        appendCellsToTableRow ('DESCRIPTION');
      </script><script>
        appendCellsToTableRow ('12');
      </script><script> 
        addTableRow ();
      </script><script>
        appendCellsToTableRow ('MODELED_BY');
      </script><script>
        appendCellsToTableRow ('ad34');
      </script><script> 
        addTableRow ();
      </script><script>
        appendCellsToTableRow ('VALUEA');
      </script><script>
        appendCellsToTableRow ('8989');
      </script><script> 
        addTableRow ();
      </script><script>
        appendCellsToTableRow ('COST');
      </script><script>
        appendCellsToTableRow ('1.250000e+00');
      </script>
    </table>
    </div>
    </div>
    </td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <ptc_no_spacing>
    <div ptc="ptc_no_spacing"></div>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="wizardstepsfont" colspan="5"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="10"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td colspan="5"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    <tr>
    <td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="btnOutline" valign="top" colspan="5"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td><td class="tableHdr"><img src="file:///C:/Program%20Files%20(x86)/proeWildfire%204.0/proe/prowttools/text/images/sp.gif" width="1" height="1"></td>
    </tr>
    </ptc_no_spacing>
    </table>
    <br>
                            NULL
                        <script>
        generateAllTables ()
      </script>
    </BODY>
    </HTML>

    Thanks for your help
  16. #9
  17. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,181
    Rep Power
    9398
    The INFO_PARAMS/INFO_PARAMS_ENTRY template is creating the values.

    About halfway down the second file is a call to that template:
    Code:
    <xsl:apply-templates select="INFO_PARAMS_ENTRY[@PARAM_TYPE=$Type]">
    Try
    Code:
    <xsl:apply-templates select="INFO_PARAMS_ENTRY[@PARAM_TYPE=$Type][@SYMBOL='COST']">
  18. #10
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0
    Code:
     <xsl:apply-templates select="INFO_PARAMS_ENTRY[@PARAM_TYPE=$Type][@SYMBOL='COST']">
    I tried the code but it caused some kind of error and just shut down the program.



    Code:
     <script>
        appendCellsToTableRow ('<xsl:value-of select="$escaped_symbol"/>');
      </script>
    I found that the code that reads the actual data I want is this. It's located in the "FEATINFO_OPERS" but I'm still not sure what other code I can use to further extract just the "Cost"

    The code above is located in this string of code below:

    Code:
    
    <xsl:template match="INFO_PARAMS/INFO_PARAMS_ENTRY">
    
      <script> 
        addTableRow ();
      </script>
    
    <!-- **************** Here is where the names come in for the Parameters in the R&P ******************-->
      <xsl:variable name="symbol">
        <xsl:choose>
          <xsl:when test="@SYMBOL!='NULL'"><xsl:value-of select="@SYMBOL"/></xsl:when>
          <xsl:otherwise><xsl:value-of select="$PWFEmptyTableStr"/></xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
      
    <xsl:variable name="escaped_symbol">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$symbol"/>
        </xsl:call-template>
      </xsl:variable> 
    
    <!-- *************Unable to remove *********************-->
      <xsl:variable name="Val">
        <xsl:if test="SYMBOL_VALUE !='NULL'">
          <xsl:apply-templates select="SYMBOL_VALUE/SYM_STRING"/>
        </xsl:if>
      </xsl:variable>
    <!-- *************END Unable to remove *********************-->
    
      <xsl:variable name="symbol">
        <xsl:choose>
    
    <!-- Temporary hack by Eyal request -->
          <xsl:when test="@SYMBOL='PTC_CATALOG_PART_URL'">
            <xsl:text>&lt;A href="proep://local_proesession?url=</xsl:text><xsl:value-of select="$Val"/><xsl:text>&amp;browser=Catalogs&amp;action=open_url"&gt; </xsl:text><xsl:value-of select="$Val"/><xsl:text>&lt;/A&gt;</xsl:text>
          </xsl:when>
    <!-- End of hack -->
    
    
      <!-- *************Unable to remove *********************-->
        <xsl:when test="SYMBOL_VALUE !='NULL'">
            <xsl:value-of select="$Val"/>
          </xsl:when>
          <xsl:otherwise><xsl:value-of select="$PWFEmptyTableStr"/></xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
    
      <xsl:variable name="escaped_symbol">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$symbol"/>
        </xsl:call-template>
      </xsl:variable> 
     
    <!-- This removes the actual information that goes into the Current Value Column -->
     <script>
        appendCellsToTableRow ('<xsl:value-of select="$escaped_symbol"/>');
      </script>
    
    
    <!-- *************END Unable to remove *********************-->
    
    </xsl:template>
    Thanks,
  20. #11
  21. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0
    Morning: requinix

    Can you help me in placing three strings of code into a second file. I am so close to what I wish to create but it's just a grasp away and I can't seem to find the correct order.


    Thanks,


    Vince

    Code:
    <?xml version="1.0"?>
    
    <!-- *******************************************************
    * File : solid_rels.xsl
    *
    * Description :
    ******* -->
    
    <xsl:stylesheet version="1.0" 
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:html="http://www.w3.org/1999/xhtml"
      xmlns:ext="urn:extension:srch-path"
      exclude-result-prefixes="ext">
    
    <xsl:import href="featinfo_table_VH_10-27-11.xsl"/>
    <xsl:import href="featinfo_opers_VH_10-27-11.xsl"/>
    
    
    <xsl:output method="html"/>
    
    <!-- **********************Here you Can Change the R & P Title**************************** -->
    <xsl:variable name="ModelRels"><?ptc-ostr key="Relations and Parameters"?>Adventure Play Systems Bom Report<?ptc-cstr?></xsl:variable>
    <!-- **********************END R & P Title Change**************************** -->
    
    <xsl:variable name="CurrentModel" select="/XML_DOCUMENT/XML_INFO/MODEL/MODEL_ENTRY/MODEL_DATA/@NAME"/>
    <xsl:variable name="PWFEmptyTableStr" select="'---'"/>
    
    
    <!-- ======================================================= -->
    <!-- ================= Relations and Parameters ============ -->
    <!-- ======================================================= -->
    <xsl:template match="/">
    <xsl:variable name="CssFile" select="ext:srch-path('ftinfoStyle.css')"/>
      <HTML>
        <HEAD>
          <TITLE><xsl:value-of select="$ModelRels"/></TITLE>
          <BASE HREF="file://"/>
          <LINK href="{$CssFile}" rel="stylesheet" type="text/css"/>
        </HEAD>
        <BODY class="tableHdr" BGColor="#FFFFFF" Text="#000000">
          <xsl:call-template name="PWF_DOC_INIT"/>
          <xsl:apply-templates select = "/XML_DOCUMENT/XML_INFO/MODEL/MODEL_ENTRY"/>
          <xsl:call-template name="PWF_DOC_GENERATE"/>
        </BODY>
       </HTML>
    </xsl:template>
    
    
    <!-- ================I NEED TO INSERT THIS CODE ON DOWN ON TO THE BOM_REPORT.XSL======================================= -->
    <!-- ====================== MODEL_ENTRY ==================== -->
    <!-- ======================================================= -->
    
    <xsl:template match="MODEL_ENTRY">
      <xsl:apply-templates select = "MODEL_OPERS/RELATIONS[text() != 'NULL']">
      </xsl:apply-templates>
    </xsl:template>
    
    
    <!-- ======================================================= -->
    <!-- ============= RELATIONS mode="PWFTableRow" ============ -->
    <!-- ======================================================= -->
    <xsl:template match="RELATIONS[text() != 'NULL']" mode="PWFTableRow">
      <xsl:if test="$UserData = 'RelReport'">
      </xsl:if>
    </xsl:template>
    
    <!-- ======================================================= -->
    <!-- ==================== PART_LIST ======================== -->
    <!-- ======================================================= -->
    
    	<xsl:template match="PART_LIST" mode="RelReport">
         </xsl:template>
    </xsl:stylesheet>
  22. #12
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2011
    Posts
    8
    Rep Power
    0
    I want to place it in to this code

    Code:
    <?xml version="1.0"?>
    
    <!-- ********************************************************
    * File : bom_report.xsl
    *
    * Description :
    *
    *===========================================================*
    * Date     Release Name   Ver.        Comments
    *===========================================================*
    *03-JAN-02 J-03-16 misht  $$1  Created.
    *08-JAN-02 J-03-17 misht  $$2  Added Quantity, Summary, Actions.
    *21-JAN-02 J-03-18 misht  $$3  Supported hilite for geometry (Designated objs).
    *29-JAN-02 J-03-18 misht       Supported configuration of bom report.
    *03-FEB-02 J-03-19 misht  $$4  Fixed hilite problems at Summary.
    *28-Feb-02 J-03-20 misht  $$5  Supported search paths.
    *08-APR-02 J-03-23 misht  $$6  Tag <ptc-cstr> should not be followed by eoln.
    *                              It will cause to new line at text format.
    *01-MAY-02 J-03-25 misht  $$7  Fixed image alignment.
    *27-MAY-02 J-03-26 misht  $$8  Added Warning Table.
    *05-JUN-02 J-03-27 misht  $$9  Remove links from Symbolic Rep models.
    *08-Oct-02 J-03-35 salex  $$10 Added translation.
    *17-Nov-02 J-03-38 misht  $$11 Updated user parameters.
    *27-Nov-02 J-03-39 misht  $$12 Improved performance.
    *11-MAR-04 K-01-25 salex  $$13 Added highlight action tooltip.
    *01-Sep-04 K-03-13 Moti   $$14 Added Sortable tables support.
    *23-Dec-04 K-03-17 Moti   $$15 Fixed escaping of translations.
    *15-Mar-05 K-03-20+Moti   $$16 Fix Escaping of table rows.
    *24-MAR-05 K-03-21 salex  $$17 MODEL_ENTRY mode="Name".
    ************************************************************ -->
    
    <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:html="http://www.w3.org/1999/xhtml"
      xmlns:ext="urn:extension:srch-path"
      exclude-result-prefixes="ext">
    
    <xsl:import href="featinfo_table_VH_10-27-11.xsl"/>
    <!-- ==== Added for the R&P Report ========-->
       <xsl:import href="featinfo_opers_VH_10-27-11.xsl"/>
    <!--=============================-->
    
    <xsl:output method="html"/>
    
    <xsl:variable name="BomReportStr"><?ptc-ostr key="Bom Report"?>Adventure Play Systems Bom Report<?ptc-cstr?></xsl:variable>
    <xsl:variable name="TopModel" select="/XML_DOCUMENT/XML_INFO/MODEL/MODEL_ENTRY[position()='1']/MODEL_DATA/@NAME"/>
    <xsl:variable name="PWFEmptyTableStr" select="'---'"/>
    <xsl:variable name="BomConfig" select="document('bom_config.xml', .)/XML_DOCUMENT/BOM_CONFIG"/>
    
    
    
    <!-- ************************************************** -->
    <xsl:template match="/">
    <xsl:variable name="CssFile" select="ext:srch-path('ftinfoStyle.css')"/>
      <HTML>
        <HEAD>
          <TITLE><xsl:value-of select="$BomReportStr"/></TITLE>
          <BASE HREF="file://"/>
          <LINK href="{$CssFile}" rel="stylesheet" type="text/css"/>
        </HEAD>
        <BODY class="tableHdr" BGColor="#FFFFFF" Text="#000000">
          <xsl:call-template name="PWF_DOC_INIT"/>
          <xsl:apply-templates select = "/XML_DOCUMENT/XML_INFO/MODEL"/>
          <xsl:call-template name="PWF_DOC_GENERATE"/>
        </BODY>
       </HTML>
    </xsl:template>
    
    
    
    <!-- ======================================================= -->
    <!-- ====================== MODEL ==================== -->
    <!-- ======================================================= -->
    <xsl:template match="MODEL">
    
      <xsl:call-template name="PWF_DOC_HEAD">
        <xsl:with-param name="PWFReportName" select="$BomReportStr"/>
        <xsl:with-param name="PWFModelName" select="$TopModel"/>
      </xsl:call-template>
    
      <xsl:apply-templates select="MODEL_ENTRY[position()=1]/MODEL_OPERS/COMMENT" mode="WarningTable"/>
    <!-- ==== Added for the R&P Report ========-->
       <xsl:apply-templates select = "MODEL_OPERS/RELATIONS[text() != 'NULL']">
      </xsl:apply-templates>
    <!--=============================-->
      <xsl:variable name="CurModel" select="."/>
    
      <xsl:for-each select="$BomConfig/PATTERN/PATTERN_ENTRY">
        <xsl:variable name="CurCfgPatternPos" select="position()"/>
    
        <xsl:choose>
          <xsl:when test="@PATTERN_TYPE='Breakdown'">
            <xsl:apply-templates select = "$CurModel" mode="Breakdown">
    	  <xsl:with-param name="CurCfgPatternPos" select="$CurCfgPatternPos"/>
    	</xsl:apply-templates>
          </xsl:when>
          <xsl:when test="@PATTERN_TYPE='Summary'">
             <xsl:apply-templates select = "$CurModel" mode="Summary">
    	   <xsl:with-param name="CurCfgPatternPos" select="$CurCfgPatternPos"/>
    	 </xsl:apply-templates>
          </xsl:when>
        </xsl:choose>
    
      </xsl:for-each>
      <br/>
      <br/>
    </xsl:template>
    
    
    <!-- ************************************************** -->
    <!--			Warning Table			-->
    <!-- ************************************************** -->
    <xsl:template match="MODEL_OPERS/COMMENT" mode="WarningTable">
      <xsl:variable name="TableVisible">
        <xsl:apply-templates select="." mode="WarningTableVisibility"/>
      </xsl:variable> 
    
      <xsl:if test="$TableVisible='TRUE'">
        <br/>
        <xsl:variable name="Title"><?ptc-ostr?>Warning!<?ptc-cstr?></xsl:variable>
    
        <xsl:call-template name="PWF_INFO_TABLE">
          <xsl:with-param name="TableTitle" select="$Title"/>
        </xsl:call-template>
      </xsl:if>
    </xsl:template>
    
    <!-- ************************************************** -->
    <xsl:template match="MODEL_OPERS/COMMENT" mode="WarningTableVisibility">
      <xsl:choose>
        <xsl:when test="COMMENT_ENTRY[@NAME='BOM WARNING']">
          <xsl:value-of select="'TRUE'"/> 
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="'FALSE'"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:template>
    
    <!-- ************************************************** -->
    <xsl:template match="MODEL_OPERS/COMMENT" mode="PWFTableLabel">
    <!-- No titles for column -->
    </xsl:template>
    
    <!-- **************************************************** -->
    <xsl:template match="MODEL_OPERS/COMMENT" mode="PWFTableRow">
      <tr class="tableoddrowbg"><td NOWRAP="TRUE"><font class="basefont">
        <?ptc-ostr?>Some components excluded from the active configuration state are<?ptc-cstr?>
        <br/>
        <?ptc-ostr?>currently not in session.This may produce inconsistencies in BOM output.<?ptc-cstr?>
      </font></td></tr>
    </xsl:template>
    
    
    <!-- ======================================================= -->
    <!-- ====================== BREAKDOWN ==================== -->
    <!-- ======================================================= -->
    <xsl:template match="MODEL" mode="Breakdown">
      <xsl:param name="CurCfgPatternPos" select="'1'"/>
    
      <xsl:apply-templates select = "MODEL_ENTRY" mode="Breakdown">
        <xsl:with-param name="CurCfgPatternPos" select="$CurCfgPatternPos"/>
      </xsl:apply-templates>
    </xsl:template>
    
    <!-- ************************************************** -->
    <xsl:template match="MODEL_ENTRY" mode="Breakdown">
      <xsl:param name="CurCfgPatternPos" select="'1'"/>
    
      <!-- Dummy model this is not the real model, it created to contain
           cabling features for summary, so it should not be related to
           breakdown -->
      <xsl:variable name="Dummy">
        <xsl:apply-templates select="MODEL_DATA/ATTRIBUTE/ATTRIBUTE_ENTRY[@NAME='BOM SUMMARY']"/>
      </xsl:variable>
    
      <xsl:if test="$Dummy!='TRUE'">
        <xsl:variable name="BomType">
          <xsl:apply-templates select="MODEL_OPERS/COMMENT/COMMENT_ENTRY[@NAME='BOM TYPE']"/>
        </xsl:variable>
    
        <xsl:variable name="Harness">
          <xsl:apply-templates select="MODEL_DATA/ATTRIBUTE/ATTRIBUTE_ENTRY[@NAME='PART IS HARNESS']"/>
        </xsl:variable>
    
    	<!-- create tables for assemblies or parts that have children
    	for example cable parts or parts that contains designated objects -->
        <xsl:if test="MODEL_DATA/@TYPE = 'ASSEMBLY' or $Harness='TRUE' or FEAT/FEAT_ENTRY">
          <br/>
          <br/>
          <xsl:variable name="UniqueName">
            <xsl:text>BOM_REPORT_BREAKDOWN_</xsl:text>
            <xsl:value-of select="MODEL_DATA/@NAME"/>
          </xsl:variable>
    
          <xsl:call-template name="PWF_INFO_TABLE_USE_JS">
            <xsl:with-param name="TableTitle">
    	  <xsl:value-of select="$BomType"/><xsl:text> </xsl:text>
              <xsl:value-of select="MODEL_DATA/@NAME"/><?ptc-ostr key="CONTAINS:"?> contains:<?ptc-cstr?></xsl:with-param>
    	<xsl:with-param name="TableUserData" select="$CurCfgPatternPos"/>
            <xsl:with-param name="UniqueName" select="$UniqueName"/>
          </xsl:call-template>
        </xsl:if>
    
      </xsl:if>
    </xsl:template>
    
    <!-- ************************************************** -->
    <xsl:template match="MODEL_ENTRY" mode="PWFTableLabel">
      <xsl:param name="UserData"/>
    
      <xsl:call-template name="BomTableTitles">
        <xsl:with-param name="CurCfgPatternPos" select="$UserData"/>
      </xsl:call-template>
    </xsl:template>
    
    
    <!-- *****************Here are the location of the names to be called out in the BOM Report Columns********************************* -->
    <xsl:template name="BomTableTitles">
      <xsl:param name="CurCfgPatternPos" select="'1'"/>
    
      <xsl:for-each select="$BomConfig/PATTERN/PATTERN_ENTRY[position()=$CurCfgPatternPos]/PARAM/PARAM_ENTRY">
        <xsl:variable name="Title">
          <xsl:choose>
            <xsl:when test="@TITLE!='NULL'"><xsl:value-of select="@TITLE"/></xsl:when>
            <xsl:when test="@NAME='$QUANTITY'"><?ptc-ostr escape_quotes="true"?>Quantity<?ptc-cstr?></xsl:when>
            <xsl:when test="@NAME='$TYPE'"><?ptc-ostr escape_quotes="true"?>Type<?ptc-cstr?></xsl:when>
            <xsl:when test="@NAME='$NAME'"><?ptc-ostr escape_quotes="true"?>Description<?ptc-cstr?></xsl:when>
              <xsl:otherwise><xsl:value-of select="@NAME"/></xsl:otherwise>
          </xsl:choose>
        </xsl:variable>
    
        <xsl:variable name="UniqueHeaderName"><xsl:value-of select="position()"/></xsl:variable>
    
        <xsl:variable name="escaped_Title">
          <xsl:call-template name="ESCAPE_EPOS">
            <xsl:with-param name="string" select="$Title"/>
          </xsl:call-template>
        </xsl:variable> 
    <!-- Here is the script/code that places the name above into the columns -->
        <xsl:choose>
          <xsl:when test="@NAME='$QUANTITY'">
            <script>
              addTableHeader ( '<xsl:value-of select="$escaped_Title"/>' , 
                               '<xsl:value-of select="$UniqueHeaderName"/>' ,
                               numCmpFunc , "Yes" );
              setColumnAlignment ('center');
            </script>
          </xsl:when>
          <xsl:when test="@NAME='$TYPE'">
            <script>
              addTableHeader ( '<xsl:value-of select="$escaped_Title"/>' , 
                               '<xsl:value-of select="$UniqueHeaderName"/>' ,
                               stringCmpFunc , "Yes" );
            </script>
          </xsl:when>
          <xsl:when test="@NAME='$NAME'">
            <script>
              addTableHeader ( '<xsl:value-of select="$escaped_Title"/>' , 
                               '<xsl:value-of select="$UniqueHeaderName"/>' ,
                               linkCmpFunc , "Yes" );
            </script>
          </xsl:when>
       
       <xsl:when test="@NAME='$COST'">
            <script>
              addTableHeader ( '<xsl:value-of select="$escaped_Title"/>' , 
                               '<xsl:value-of select="$UniqueHeaderName"/>' ,
                               stringCmpFunc , "Yes" );
            </script>
          </xsl:when>
      
        <xsl:otherwise>
            <script>
              addTableHeader ( '<xsl:value-of select="$escaped_Title"/>' , 
                               '<xsl:value-of select="$UniqueHeaderName"/>' ,
                               stringCmpFunc , "Yes" );
              setColumnAlignment ('center');
            </script>
          </xsl:otherwise>
        </xsl:choose>
    
      </xsl:for-each>
    
      <script>
        addTableHeader ( '<?ptc-ostr escape_quotes="true"?>In House Cost<?ptc-cstr?>')
      </script>
    
    </xsl:template>
    
    
    <!-- *************This is the code that defines the table to be brought in to the breakdown Quantity, Type, Name, and Omited Action icons but keeping the cell************** -->
    <xsl:template match="MODEL_ENTRY" mode="PWFTableRow">
      <xsl:param name="UserData"/>
    
      <xsl:variable name="ModelCfgSup">
        <xsl:apply-templates select="." mode="ModelCfgSuppressed"/>
      </xsl:variable>
    
      <xsl:choose>
        <xsl:when test="not(FEAT/FEAT_ENTRY) and $ModelCfgSup='TRUE'">
          <xsl:apply-templates select="MODEL_DATA/ATTRIBUTE/ATTRIBUTE_ENTRY[@NAME='BOM SUPPRESSED']" mode="Model Suppressed"/>
          <xsl:apply-templates select="MODEL_DATA/ATTRIBUTE/ATTRIBUTE_ENTRY[@NAME='BOM SYMB REP']" mode="Model Symb Rep"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:apply-templates select = "FEAT/FEAT_ENTRY/FEAT_DATA">
            <xsl:with-param name="CurCfgPatternPos" select="$UserData"/>
          </xsl:apply-templates>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:template>
    
    <!-- ************************************************** -->
    <xsl:template match="MODEL_ENTRY" mode="ModelCfgSuppressed">
      <xsl:choose>
        <xsl:when test="MODEL_DATA/ATTRIBUTE/ATTRIBUTE_ENTRY[@NAME='BOM SUPPRESSED'][@VALUE='TRUE']">
          <xsl:value-of select="'TRUE'"/>
        </xsl:when>
        <xsl:when test="MODEL_DATA/ATTRIBUTE/ATTRIBUTE_ENTRY[@NAME='BOM SYMB REP'][@VALUE='TRUE']">
          <xsl:value-of select="'TRUE'"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="'FALSE'"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:template>
    
    <!-- ************************************************** -->
    <xsl:template match="ATTRIBUTE/ATTRIBUTE_ENTRY[@NAME='BOM SUPPRESSED']" mode="Model Suppressed">
      <script>
        addTableRow ('<?ptc-ostr escape_quotes="true"?>Model not included in current Configuration State<?ptc-cstr?>');
        setRowColor ( 'tableoddrowbg' );
        setCellFont ( 'basefont' );
        setCellColSpan ( 4 );
      </script>
    </xsl:template>
    
    <!-- ************************************************** -->
    <xsl:template match="ATTRIBUTE/ATTRIBUTE_ENTRY[@NAME='BOM SYMB REP']" mode="Model Symb Rep">
      <script>
        addTableRow ('<?ptc-ostr escape_quotes="true"?>Model is included in Symbolic Representation.<?ptc-cstr?>');
        setRowColor ( 'tableoddrowbg' );
        setCellFont ( 'basefont' );
        setCellColSpan ( 4 );
      </script>
    </xsl:template>
    
    <!-- ***************START SCRIPT/CODE this brings in the the "Quantity" to be placed in the Quantity column of the BOM *********************************** -->
    <xsl:template match="FEAT_DATA" mode="Quantity">
      <xsl:variable name="Quantity" select="../FEAT_APP/COMMENT/COMMENT_ENTRY/@COMMENT[../@NAME='BOM QUANTITY']"/>
      <script>
        appendCellsToTableRow ('<xsl:value-of select="floor($Quantity)"/>')
      </script>
    </xsl:template>
    
    
    <!-- *********************START SCRIPT/CODE this brings in the the "type of PART" to be placed in the type column of the BOM ***************************** -->
    <xsl:template match="FEAT_DATA" mode="Type">
      <xsl:variable name="BomType" select="../FEAT_APP/COMMENT/COMMENT_ENTRY/@COMMENT[../@NAME='BOM TYPE']"/>
      <xsl:variable name="escaped_BomType">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$BomType"/>
        </xsl:call-template>
      </xsl:variable> 
    <!-- this removes the script/code to bring in the script to place "Part" in the BOM report -->
      <script>
        appendCellsToTableRow ('<xsl:value-of select="$escaped_BomType"/>')
      </script>
    
    </xsl:template>
    
    <!-- ***************START SCRIPT/CODE this brings in the "Name" to be placed in the Name column of the BOM and the highlight to the name*********** -->
    
    
    <xsl:template match="FEAT_DATA" mode="Name">
      <xsl:variable name="Suppressed">
        <xsl:apply-templates select="ATTRIBUTE" mode="Suppressed"/>
      </xsl:variable>
    
      <xsl:variable name="Name" select="FEATURE_ID/@NAME"/>
      <xsl:variable name="Type" select="FEAT_TYPE/@TYPE"/>
      <xsl:variable name="FeatId" select="FEATURE_ID/@ID"/>
      <xsl:variable name="ModelName" select="../../../MODEL_DATA/@NAME"/>
      <xsl:variable name="ModelExt" select="../../../MODEL_DATA/@FILE_EXT"/>
    
      <xsl:choose>
        <xsl:when test="$Suppressed='TRUE'">
          <xsl:variable name="escaped_Name">
            <xsl:call-template name="ESCAPE_EPOS">
              <xsl:with-param name="string" select="$Name"/>
            </xsl:call-template>
          </xsl:variable> 
      
       <script>
            appendCellsToTableRow ('<xsl:value-of select="$escaped_Name"/>')
          </script>
      
    <!-- Here is the script/code that makes the name under the name/description column highlight -->
      </xsl:when>
        <xsl:otherwise>
          <xsl:variable name="highlightString">
            <xsl:call-template name="PWF_CREATE_HIGHLIGHT_INFO_STRING">
              <xsl:with-param name="ModelName" select="$ModelName"/>
              <xsl:with-param name="ModelExt" select="$ModelExt"/>
              <xsl:with-param name="ID" select="$FeatId"/>
              <xsl:with-param name="ItemString" select="$Type"/>
              <xsl:with-param name="Name" select="$Name"/>
            </xsl:call-template>
          </xsl:variable>
          <xsl:variable name="escaped_highlightString">
            <xsl:call-template name="ESCAPE_EPOS">
              <xsl:with-param name="string" select="$highlightString"/>
            </xsl:call-template>
          </xsl:variable> 
      <!-- this removes the script/code to highlight the name in the BOM report -->
        <script>
            appendCellsToTableRow ('<xsl:value-of select="$escaped_highlightString"/>')
          </script>
     
       </xsl:otherwise>
      </xsl:choose>
    
    </xsl:template>
    
    
    <!-- *************************************************************************
    ***START: Here is the test code for the action column with the R&P ******
    *****************************************************************************-->
    
    <xsl:template match="FEAT_DATA" mode="Actions">
     
      <xsl:variable name="symbol">
        <xsl:choose>
    <!--      <xsl:when test="@SYMBOL!='NULL'"><xsl:value-of select="@SYMBOL"/></xsl:when>
          <xsl:otherwise><xsl:value-of select="$PWFEmptyTableStr"/></xsl:otherwise>
    -->    </xsl:choose>
      </xsl:variable>
      
    <xsl:variable name="escaped_symbol">
        <xsl:call-template name="ESCAPE_EPOS">
    <!--      <xsl:with-param name="string" select="$symbol"/>
    -->    </xsl:call-template>
      </xsl:variable> 
    
      <xsl:variable name="Val">
        <xsl:if test="SYMBOL_VALUE !='NULL'">
    <!--      <xsl:apply-templates select="SYMBOL_VALUE/SYM_STRING"/> -->
        </xsl:if>
      </xsl:variable>
    
      <xsl:variable name="symbol">
        <xsl:choose>
    
    <!-- Temporary hack by Eyal request -->
          <xsl:when test="@SYMBOL='PTC_CATALOG_PART_URL'">
    <!--        <xsl:text>&lt;A href="proep://local_proesession?url=</xsl:text>
    	<xsl:value-of select="$Val"/><xsl:text>&amp;browser=Catalogs&amp;action=open_url"&gt; </xsl:text>
    	<xsl:value-of select="$Val"/>
    	<xsl:text>&lt;/A&gt;</xsl:text>
     -->     </xsl:when>
    <!-- End of hack -->
      
        <xsl:when test="SYMBOL_VALUE !='NULL'">
            <xsl:value-of select="$Val"/>
          </xsl:when>
          <xsl:otherwise><xsl:value-of select="$PWFEmptyTableStr"/></xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
    
      <xsl:variable name="escaped_symbol">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$symbol"/>
        </xsl:call-template>
      </xsl:variable> 
     
    <!-- This removes the actual information that goes into the Current Value Column -->
      <script>
        appendCellsToTableRow ('<xsl:value-of select="$escaped_symbol"/>');
      </script>
    
    
    
    </xsl:template>
    
    <!-- ******END: test code for the action column with the R&P ************-->
    
    
    
    <!-- ************************************************** -->
    <xsl:template match="FEAT_DATA" mode="UserParam">
      <xsl:param name="ParamName"/>
    
      <xsl:variable name="ParamValue">
        <xsl:choose>
          <xsl:when test="../FEAT_APP/OPERATIONS/RELATIONS/INFO_PARAMS/INFO_PARAMS_ENTRY[@SYMBOL=$ParamName]">
            <xsl:apply-templates select="../FEAT_APP/OPERATIONS/RELATIONS/INFO_PARAMS/INFO_PARAMS_ENTRY/SYMBOL_VALUE/SYM_STRING[../../@SYMBOL=$ParamName]"/>
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="$PWFEmptyTableStr"/>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:variable>
    
      <xsl:variable name="escaped_ParamValue">
        <xsl:call-template name="ESCAPE_EPOS">
          <xsl:with-param name="string" select="$ParamValue"/>
        </xsl:call-template>
      </xsl:variable> 
      <script>
        appendCellsToTableRow ('<xsl:value-of select="$escaped_ParamValue"/>')
      </script>
    </xsl:template>
    
    
    <!-- ************************************************** -->
    <xsl:template match="FEAT_DATA">
      <xsl:param name="CurCfgPatternPos" select="'1'"/>
    
      <script>
        addTableRow ()
      </script>
    
        <xsl:variable name="CurFeat" select="."/>
    
        <xsl:for-each select="$BomConfig/PATTERN/PATTERN_ENTRY[position()=$CurCfgPatternPos]/PARAM/PARAM_ENTRY">
          <xsl:choose>
            <xsl:when test="@NAME='$QUANTITY'">
               <xsl:apply-templates select="$CurFeat" mode="Quantity"/>
             </xsl:when>
             <xsl:when test="@NAME='$TYPE'">
               <xsl:apply-templates select="$CurFeat" mode="Type"/>
             </xsl:when>
             <xsl:when test="@NAME='$NAME'">
               <xsl:apply-templates select="$CurFeat" mode="Name"/>
             </xsl:when>
    	 <xsl:otherwise>
    	   <xsl:apply-templates select="$CurFeat" mode="LocalParam">
                 <xsl:with-param name="ParamName" select="@NAME"/>
    	   </xsl:apply-templates>
             </xsl:otherwise>
           </xsl:choose>
         </xsl:for-each>
    
         <xsl:apply-templates select="." mode="Actions"/> <!-- This will remove the CELLS in the action column BREAKDOWN-->
    
    </xsl:template>
    
    
    
    <!-- *****************************************************-->
    <!-- Those are models/features that shouldn't have links  -->
    <!-- Symbolic representation parts should have links at   -->
    <!-- the future, in order to support it we should export  -->
    <!-- translated representation name and to use  it for    -->
    <!-- proep protocol					  -->
    <!-- *****************************************************-->
    <xsl:template match="ATTRIBUTE" mode="Suppressed">
      <xsl:choose>
        <xsl:when test="ATTRIBUTE_ENTRY[@NAME='BOM SUPPRESSED']">
          <xsl:value-of select="'TRUE'"/>
        </xsl:when>
        <xsl:when test="ATTRIBUTE_ENTRY[@NAME='BOM SYMB REP']">
          <xsl:value-of select="'TRUE'"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="'FALSE'"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:template>
    
    <!-- *****************************************************-->
    <xsl:template match="FEAT_ENTRY" mode="PWFParentName">
      <xsl:value-of select="../../MODEL_DATA/@NAME"/>
    </xsl:template>
    
    <xsl:template match="FEAT_ENTRY" mode="PWFParentExt">
      <xsl:value-of select="../../MODEL_DATA/@FILE_EXT"/>
    </xsl:template>
    
    
    <xsl:template name="ModelCount">
      <xsl:param name="Name"/>
      <xsl:param name="Type"/>
    
      <xsl:value-of select="count(/XML_DOCUMENT/XML_INFO/MODEL/MODEL_ENTRY[@NAME=$Name][@TYPE=$Type])"/>
    </xsl:template>
    
    </xsl:stylesheet>

    I tried to place it where I noted TEST CODE but I only receive this output.
  24. #13
  25. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    42
    Rep Power
    3
    http://developer.android.com/guide/topics/manifest/manifest-intro.html visit here hop it will help you.

IMN logo majestic logo threadwatch logo seochat tools logo