Can't Apply XQuery Scenario From Document Window

It appears that from a document's window you can only apply XSLT transforms, not XQuery transforms. Is that correct? And if so, why? I tried creating an XQuery scenario that took the current doc as input but when I apply it it's trying to process it as XSLT. I realize this is probably not the normal way to use XQuery, but in this case I wrote a query that analyzes a single document and just want to apply it to a doc without having to re-edit the scenario. Cheers, Eliot -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 610.631.6770 www.reallysi.com www.rsuitecms.com

Hello, Yes, up to the current version of oXygen only XSLT scenarios can be applied when the current document is an XML one. So far the XQuery scenarios were not added to the list of scenarios displayed for an XML document because usually an XQuery scenario is applied to an XQuery document and the XML data is loaded from an XML file with the doc() function or from the default XML input source of the transformation which is set in the scenario with the XML URL field. It sounds reasonable to list both XSLT scenarios and XQuery ones in the same window of scenarios. Thank you for your suggestion, Sorin Eliot Kimber wrote:
It appears that from a document's window you can only apply XSLT transforms, not XQuery transforms.
Is that correct?
And if so, why?
I tried creating an XQuery scenario that took the current doc as input but when I apply it it's trying to process it as XSLT.
I realize this is probably not the normal way to use XQuery, but in this case I wrote a query that analyzes a single document and just want to apply it to a doc without having to re-edit the scenario.
Cheers,
Eliot
participants (2)
-
Eliot Kimber
-
Sorin Ristache