selection in transformation scenario

Questions about XML that are not covered by the other forums should go here.
LBarth
Posts: 26

selection in transformation scenario

Tue Jun 28, 2016 4:14 pm

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: 5750

Re: selection in transformation scenario

Wed Jun 29, 2016 9:41 am

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

Re: selection in transformation scenario

Wed Jun 29, 2016 11:17 am

Ok Radu, thanks a lot.

Lionel

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests