[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Get the first Array element

Subject: Re: Get the first Array element
From: henry human <henry_human@xxxxxxxx>
Date: Thu, 10 May 2012 16:17:44 +0100 (BST)
Re:  Get the first Array element
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@xxxxxxxxxxxx>
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
CC:
Gesendet: 17:09 Donnerstag, 10.Mai 2012
Betreff: Re:  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@xxxxxxxxxxxxxxxxxxxxxx>
> --~--

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.