Quantcast
Channel: aras PLM community
Viewing all articles
Browse latest Browse all 1103

How to sum of property over the ITEM Type

$
0
0

Hi Friends,

If i want to count Items on Item Type then i have a code.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="xml" omit-xml-declaration="yes"/>
 <xsl:template match="/"><Result><xsl:value-of select="count(//Item[@type='MACHINE ENTRY'])"/></Result></xsl:template>
</xsl:stylesheet>

Count is successful.

If I have a property name machine_hours and I want to sum machine_hours, so What changes required on above code.

Thanks in Advance

Abhishek Srivastava


Viewing all articles
Browse latest Browse all 1103

Trending Articles



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