selection in transformation scenario
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 26
- Joined: Mon Mar 04, 2013 1:42 pm
selection in transformation scenario
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.
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.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: selection in transformation scenario
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service