Hi Axel,

The easiest way is to add some facets with predefined selections:

    <div ex:role="collection" ex:itemTypes="Build" id="builds"></div>
    <div style="display: none;">
        <div ex:role="facet" ex:collectionID="builds"
            ex:expression=".app"
            ex:selection="browser"
            ex:scroll="false"></div>

        <div ex:role="facet" ex:collectionID="builds"
            ex:expression=".tree"
            ex:selection="trunk"
            ex:scroll="false"></div>
    </div>

David


Axel Hecht wrote:
> 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
>   

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

Reply via email to