Page 1 of 1

selection in transformation scenario

Posted: Tue Jun 28, 2016 4:14 pm
by LBarth
Hi,

Is there a way to use transformation scenarios on a selection instead of an entire file ?

Something like :
<field name="inputXMLURL"><String>${selection}</String></field>

instead of :
<field name="inputXMLURL"><String>${currentFileURL}</String></field>

Best regards,
Lionel

PS : I use oxygen Author standalone v18.

Re: selection in transformation scenario

Posted: Wed Jun 29, 2016 9:41 am
by Radu
Hi Lionel,

Sorry but this is not possible using an Oxygen transformation scenario.
The only possibility I see would be for you to have a plugin which contributes a custom action (and mount it on the contextual menu for example) and that action would use our API to create an XSLT transformer ro.sync.exml.workspace.api.util.XMLUtilAccess.createXSLTTransformer(Source, URL[], int) and apply the XSLT transformation directly from the Java code, using our API to look at the current selected content and creating a transformer source from it.

Regards,
Radu

Re: selection in transformation scenario

Posted: Wed Jun 29, 2016 11:17 am
by LBarth
Ok Radu, thanks a lot.

Lionel