I try to apply Jet on a very basic model containing orders with related
customers and attributes. How could I retrieve for a specific order(or for
all orders) the related customer (+ customer attributes) and the related
articles (+ article attributes). My xmi model and ecore meta-model are
included below. Any help would be very welcome.
I'm not sure if this help you but here is a tutorial which uses an EMF
model, access different model elements and creates HTML as output.
Perhaps it gives you some hints for want you want to do.
Thanks for your clear explanantion. I think it is very helpful for new
users (like me) to find an example together with this level of explanation.
Although a well chosen example in itself is very valuable, in this form it
has maximal educational impact.
When I execute the jet-file (first one since I have JET0.9.2) I get the
msg:
templates/orders.jet(6,26): <c:get select="$order/customer/@name">
Error: XPath expression returned no result
Moreover in the produced output the articles for the orders are missing,
so it seems that the iterate for order-articles yields nothing.
The order-id's are present in the output.
Does this mean that the model loader cannot find the ecore file?
I did create the ecore file in a different project. What is needed to let
the model loader find this ecore file ?
The zip-example works well. I only needed to adapt the manifest file by
removing the bundle-version constraints since these caused a blocking
error msg.
I am looking forward to your tutorial.