Xpath and count - InfoPath Dev
in

InfoPath Dev

Xpath and count

Last post 04-16-2007 12:06 PM by Shiva. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-16-2007 06:08 AM

    Xpath and count

    Hello,

    I want to count all attributes Causale that contains the string "Turno"... Where is my error ?

    count(../my:Persone/my:TurnoSerale/@my:Causale="Turno")

    Is it possible to count attributes?

    Thanks, Checco

     

     

  • 04-16-2007 09:45 AM In reply to

    Hi Checco,

     It is possible, do like this.

     The syntax is :

    count(../my:Persone/my:TurnoSerale/@my:Causale[. = "Turno"])

     You will get the Result.

    B.Shiva Prasad
    InfoPath Dev,
    http://www.ggktech.com
    India
  • 04-16-2007 12:06 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Hi Checco,

    If you want to get the 'Causale' nodes then above Shiva given XPath is correct. If you want to 'TurnoSerale' nodes then use the given below XPath:

    count(../my:Persone/my:TurnoSerale[@my:Causale = "Turno"])

    By using this XPath you can get the 'TurnoSerale'' nodes with the 'Causale' node value is equal to 'Turno'.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.