File Open/Save with XSLT
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: File Open/Save with XSLT
Hi Tim,
Indeed our Java-based API can be used to process the contents of an XML immediately after it is opened or before it is saved.
For Oxygen 17.0 (which we plan to release in April-May this year) we plan to add support for a feature called Dynamic Conversion. Basically it's a new URL protocol called convert which has various pre-defined processors (for example an XSLT or Xquery processor, a Javascript processor, Java and so on). Processors can be assembled in a pipeline. And you can also define reverse conversion processors which are used when content is modified and saved in the editor.
So if you would construct an URL like:
convert:/processor=xslt;ss=urn:processors:convert.xsl/rprocessor=xslt;ss=urn:processors:rconvert.xsl!/urn:files:myFile.xml
it would apply the convert.xsl over the file and open the content in the editor.
Then after the XML is modified and saved, it will apply the rconvert.xsl over the modified content and save the results to disk.
So if you are interested in this after Oxygen 17 is released our user manual will contain examples for this + link to a GitHub project containing samples.
For example one of the samples will convert comma separated values (CSV) to XML and then port the modifications back to CSV when the user saves the content.
Regards,
Radu
Indeed our Java-based API can be used to process the contents of an XML immediately after it is opened or before it is saved.
For Oxygen 17.0 (which we plan to release in April-May this year) we plan to add support for a feature called Dynamic Conversion. Basically it's a new URL protocol called convert which has various pre-defined processors (for example an XSLT or Xquery processor, a Javascript processor, Java and so on). Processors can be assembled in a pipeline. And you can also define reverse conversion processors which are used when content is modified and saved in the editor.
So if you would construct an URL like:
convert:/processor=xslt;ss=urn:processors:convert.xsl/rprocessor=xslt;ss=urn:processors:rconvert.xsl!/urn:files:myFile.xml
it would apply the convert.xsl over the file and open the content in the editor.
Then after the XML is modified and saved, it will apply the rconvert.xsl over the modified content and save the results to disk.
So if you are interested in this after Oxygen 17 is released our user manual will contain examples for this + link to a GitHub project containing samples.
For example one of the samples will convert comma separated values (CSV) to XML and then port the modifications back to CSV when the user saves the content.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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