marklogic-community / Corona

Community REST API for MarkLogic
Other
37 stars 9 forks source link

RFE: Applying stylesheets to the Corona ResultSet #55

Closed sastafford closed 12 years ago

sastafford commented 12 years ago

Could we have the stylesheet referenced by the 'applyTransform' parameter being applied to the result set instead of the individual documents. I have a use case where I may want to return a CSV result set instead of an Corona XML result set. If I apply a stylsheet/xquery to the result set I can still transform the individual documents but now I can transform the result set to any type of format I want.

eedeebee commented 12 years ago

What do you want to happen when the result set is large and not returned all in one api call?

sastafford commented 12 years ago

I got around this issue by creating a new endpoint based on the present search.xqy endpoint. After getting my result set back from store:outputMultipleDocuments, I apply a stylesheet to the result set into my desired format. A better solution recommended by Jason Hunter.

eedeebee commented 12 years ago

"Scott A. Stafford" reply@reply.github.com wrote:

I got around this issue by creating a new endpoint based on the present search.xqy endpoint. After getting my result set back from store:outputMultipleDocuments, I apply a stylesheet to the result set into my desired format. A better solution recommended by Jason Hunter.


Reply to this email directly or view it on GitHub: https://github.com/marklogic/Corona/issues/55#issuecomment-2994191