I'm trying to figure out how Xpression is querying my statcrew xml files within data link. It appears on the outside to be xpath but it doesn't quite work with how I know to write xpath statements. What i'm trying to do is for Basketball build a 5 on the floor stats full page graphic. I want Datalink to parse all information from statcrew when the operator takes the graphic to air. The code I'm typing into datalink that works so far is below.
Column
\team<2>\player\stats
Row
tp
This returns total points for the first player that is currently listed as on the court from the visiting team. The trouble i'm running into is I can't figure out how to make it return the next 4 people. (i.e. the next result(s) under players on team 2 where on court = Y) Traditionally in xpath that script would look something like this.
Column
/bbgame/team[2]/player[@oncourt = "Y"][1]/stats
Row
tp
In order to get the second player on court with the script above I would change the 1 to a 2. However, in Xpression, I can't figure out how to type this in where it will work.
Any help would be greatly appreciated. I would love to see some documentation on this stuff if it's available.