This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Report generation

Samiyac - Monday, September 13, 2010 6:05 AM:

Hi Champs,
I want to generate a report as follows,
 
When the classification type is /Part/Component/CAPACITORS it should generate the report with the class specific property associated with the capacitor.
When the classification type is not capacitor it should print all the class specific property associated with the resistor.
 
I am not familiar with the XML and AML coding. Please help me in writing the code for the same.
 
 
<xsl:choose>
        <xsl:when test ="$classification=/Part/Component/CAPACITORS">
                                <xsl:value-of select="cap_package"></xsl:value-of>-
                                <xsl:value-of select="cap_value"></xsl:value-of>
                                <xsl:value-of select="cap_volatge"></xsl:value-of>
                </xsl:when>
         
         <xsl:otherwise>
                <xsl:value-of select="res_package"></xsl:value-of>       
                <xsl:value-of select="res_value"></xsl:value-of>      
                <xsl:value-of select="res_tolerance"></xsl:value-of>       
                <xsl:value-of select="res_wattage"></xsl:value-of>       
                <xsl:value-of select="res_material"></xsl:value-of>    
        </xsl:otherwise>
 </xsl:choose>
Thanks,
Sam