selection in transformation scenario

Questions about XML that are not covered by the other forums should go here.
LBarth
Posts: 26
Joined: Mon Mar 04, 2013 1:42 pm

selection in transformation scenario

Post 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.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: selection in transformation scenario

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
LBarth
Posts: 26
Joined: Mon Mar 04, 2013 1:42 pm

Re: selection in transformation scenario

Post by LBarth »

Ok Radu, thanks a lot.

Lionel
Post Reply