So here's my problem. I have a customer, and the customer has potentially many
orders. I want the orders to be stored as documents of "type" Order. And I
want them to be stored uniquely, and I'm willing to use the Sling wildcard as
part of the insertion, so that each order is unique in the repository.
So you can imagine that my insert URL's look like
http://repository.ourcompany.com/DocumentRepository/Orders/{CustomerID}/Orders/*
This all works fine and I end up with this kind of deal...
Orders/11_1280339300849
Orders/12_1280339533384
Orders/13_1280339543556
And that is fine, I totally understand that as the result and it makes perfect
sense, however,
when I hit this URL
http://repository.ourcompany.com/DocumentRepository/Orders/{CustomerID}/Orders/12_1280339533384.xml
I get xml that starts out with:
<_x0031_2_1280339533384 ...
What I need is for that tag to be:
<order orderId="12_1280339533384"
If I use a :nameHint then all the documents I insert end up with the same name
and write over each other. What I want is uniqueness going in,
but on a get, use a value from a field in the document, to render the main tag
and and identifier for the xml.
I'm not sure how to make that happen.
Tony