Added backend support for multiple files in XSLT. #272
Reference in New Issue
Block a user
No description provided.
Delete Branch "widlam/add_multiplefiles_xslt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Added backend support for multiple files in XSLT.to WIP: Added backend support for multiple files in XSLT.@@ -2,6 +2,7 @@ package com.r11.tools.controller;import com.google.gson.Gson;import com.r11.tools.controller.internal.*;import com.r11.tools.model.XMLMultipleFilesBody;This is unneeded, so should be removed
@@ -0,0 +1,38 @@package com.r11.tools.controller.internal;import com.r11.tools.model.XMLMultipleFilesBody;import com.r11.tools.model.XMLRequestBody;Unused import, removal needed
@@ -0,0 +2,4 @@import com.r11.tools.model.XMLMultipleFilesBody;import com.r11.tools.model.XMLRequestBody;import com.r11.tools.xml.Saxon;Same as above
@@ -16,0 +25,4 @@* @return transformed xml* @throws SaxonApiException thrown on stylesheet or transformation error*/public String processXSLT(XMLMultipleFilesData[] data, String transform) throws SaxonApiException, IOException{I would extract some parts of the code from this method to separate private methods to increase readability
@@ -108,6 +108,7 @@ function prepareRequestBody():string {"processor": engine.value,"version": version.value});console.log(requestBody)We should left console.logs like this in production code as it serves no purpose, altough I understand that can happen ;)
There are some minor things to correct, like unused imports and one method that requires splitting. However, this change is made well overall.
WIP: Added backend support for multiple files in XSLT.to Added backend support for multiple files in XSLT.