[Home] [By Thread] [By Date] [Recent Entries]
At 2012-05-10 15:52 +0100, henry human wrote:
As Dmitry says, it is difficult to guess what you want because your question is unclear. But I recognize your use of elements and namespace prefixes as likely being OASIS UBL. Looking at the TaxTotal aggregate (note the page is very long and takes a while to load): http://docs.oasis-open.org/ubl/prd2-UBL-2.1/mod/summary/reports/UBL-AllDocuments-2.1.html#t-CommonLibrary-1820 ... I see that <cbc:TaxAmount> is a mandatory child of <cac:TaxTotal>. Therefore you know the count of those children is the same as the count of the parents. But you cite <cbc:RoundingAmount> in your question. Are you perhaps looking for the count of those <cac:TaxTotal> elements that have the optional <cbc:RoundingAmount> child? That would be: count(cac:TaxTotal[cbc:RoundingAmount]) ... which actually would be the same as the count of the rounding amounts: count(cac:TaxTotal/cbc:RoundingAmount) I hope this helps ... but it is only a guess. . . . . . . . . . . Ken
|

Cart



