
Hi Florent, To make my response more clear for anyone who reads this post, I want to mention that this discussion is about the presentation "How to Develop XSLT Stylesheets for Saxon CE" from the oXygen users meetup at the XML Prague conference. Also, I will copy your question left on youtube.com here:
Thanks for this video (that I already saw live :-p) This is very useful. Is the source code of the add-on available anywhere? Maybe with a bit of explanation about how to build it? So I can try to create my own add-on with other completion in XSLT. Is it available for XQuery as well?
Unfortunately, the framework 'XSLT with Saxon-CE support' was not developed as a separate project and the process to extract it is not immediately. On the other hand, I wouldn't like to make this framework public because: * we have plans to add built-in support for editing Saxon-CE stylesheets in a future version. This way, the user wouldn't have to import the fake stylesheet in order to avoid the validation problems related to the unknown Saxon-CE extension functions. Also, this solution will not use the additional Schematron module to validate the names of the Saxon-CE extension elements and attributes. * the rules from the Schematron module cannot validates the XPath expressions from additional Saxon-CE attributes, by example from ixslt:set-attribute/@select. In conclusion, this add-on represents a temporary solution that is possible to be deprecated in the next version. However, the sources for almost all components are already available in the add-on installation folder: - the XSLT module that contains declaration of all Saxon-CE extension functions may be found in $addOnInstallDir\saxon\ce\resources\extension_functions.xsl; - the Schematron module used to verify the names of Saxon-CE extension elements and atributes can be found here: $addOnInstallDir\saxon\ce\resources\saxon-ce.sch - a Java implementation of the interface SchemaManagerFilter used to improve the content completion proposals by adding the Saxon-CE elements and attributes. The source of this class may be found in the attachments. I attached the sources of the XSLT and Schematron modules. The path for $addOnInstallDir is $applicationsPreferencesDir/com.oxygenxml.com/extensions/v15.2/frameworks/$updateSiteURL/xslt-saxon-ce.
Maybe with a bit of explanation about how to build it? So I can try to create my own add-on with other completion in XSLT.
If you need the sources as a framework example, an alternate solution is to download the Author SDK from: http://oxygenxml.com/oxygen_sdk.html#XML_Editor_Authoring_SDK. It also contains a sample framework: Simple Documentation Framework - SDF.
Is it available for XQuery as well?
Unfortunately, the 'Document Type' support is available only for XML documents, so it cannot be used to extend the content completion for XQuery documents. Do not hesitate to contact us if you need further assistance. Regards, Radu -- Radu Pisoi <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 3/19/2014 13:24, Florent Georges wrote:
Thanks for this, this is very useful!
By the way, I left a question on the page for one video last week. That looked like the most sensible place to leave that comment (on http://youtube.com/watch?v=7PzsZWDBZtc). Just to be sure you did not miss it.
Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/