Hi,

I have another breed of my l10n builds exhibits, and I'm struggling
with the following task:

I have builds for two trees, and (possibly) two applications. I
managed to filter the items based on type, and I even got a
ex:expression sub-collection going. My items look somewhat like

{
    "items": [
        {
            "locale":                  "bn-IN",
            "app":                     "browser",
            "tree":                    "incubator",
            "result":                  "success",
            "label":                   "bn-IN",
            "type":                    "Build",
            "id":                      "linux-langpack/incubator/browser/bn-IN"
        },
        {
            "locale":                  "it",
            "app":                     "browser",
            "tree":                    "trunk",
            "result":                  "success",
            "label":                   "it",
            "type":                    "Build",
            "id":                      "linux-langpack/trunk/browser/it"
        }
  ]
}

and what I want, in semi-XPath speak is ".[.app = 'browser'][.tree = 'trunk'].

The treat is, I'm using the main json file for other exhibits, too, in
which I actually want all builds, but this is for release tracking,
and only a subset of that actually matter.

I tried

  <div ex:role="collection" ex:itemTypes="Build" id="builds"></div>
  <div ex:role="collection" ex:expression=".tree = 'trunk'"
ex:baseCollectionID="builds"></div>

but that yielded only 'true' and 'false' to be in the collection,
which maps to what I though the code would do.

Any suggestions? Or is my way to go to just implement a function that
does what I want?

Axel
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to