I know that Laszlo doesn't support full XPath functionality, but I'm wondering if there is a document which fully describes what Laszlo does support. I see some information in section 3.1 of Chapter 33, is that a complete specification of what is supported?

For example, I have XML like this:

<items>
        <item name="Item 1">
                <categories>
                        <category name="Category 1"/>
                </categories>
        </item>
        <item name="Item 2">
                <categories>
                        <category name="Category 2"/>
                </categories>
        </item>
        <item name="Item 3">
                <categories>
                        <category name="Category 2"/>
                        <category name="Category 3"/>
                </categories>
        </item>
</items>

I would like to make selections based on the value of the name attribute of category. I've been able to get something like this to work (I'm doing this in a grid):

contentdatapath="item[1-2]", which would give me the first two items, but what I want to be able to do is something like this:

contentdatapath="item[//category/@name = 'Category 2']"

or

contentdatapath="item[/categories/category/@name = 'Category 2']"

but neither of these seem to work. Am I doing something wrong or is this form of Xpath not supported by Laszlo. If it's not supported, is there a workaround solution? Basically I want to create a bunch of gridrows based on a contentdatapath similar to the examples I've given above.

Thanks.

--
James Howe
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to