xsl-list
[Top] [All Lists]

Re: [xsl] Get the first Array element

2012-05-10 11:17:59
sorry, it was a mistake I meant I tried it withn Amount. See bellow:
Ever I will get the FIRST Taxtotal because this has the Amount
I tried :TaxTotal[1]/Amount
Butr It is wrong!


----- Ursprüngliche Message -----
Von: Michael Kay <mike(_at_)saxonica(_dot_)com>
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
CC: 
Gesendet: 17:09 Donnerstag, 10.Mai 2012
Betreff: Re: [xsl] Get the first Array element

Since there is no element called RoundingAmount in your input, why would you 
expect this XPath expression to select anything?

Michael Kay
Saxonica

On 10/05/2012 15:11, henry human wrote:
Hello
<elements>  ....
  <TaxTotal>
    <otherAmount>22.00</otherAmount>
  </TaxTotal>
  .......
  <TaxTotal>
    <otherAmount>90.00</otherAmount>
  </TaxTotal>
  <TaxTotal>
        .....
    <Amount>44.00</Amount>
    </TaxSubtotal>
  </TaxTotal>
  <TaxTotal>
    .....
    <Amount>10.00</Amount>
    </TaxSubtotal>
  </TaxTotal>
  ......
</elements>  ---------------------
Ever I will get the FIRST Taxtotal because this has the Amount
I tried :cac:TaxTotal[1]/cbc:RoundingAmount
Butr It is wrong!
??

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or 
e-mail:<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--