Reputation: 17
With the java version of Saxon I can run the following in a bash script: java -cp "${PROJECT_FOLDER_PATH}"/saxon/saxon-he-11.5.jar net.sf.saxon.Transform -t -s:"${SCHEMAS_FOLDER}" -xsl:"${PROJECT_FOLDER_PATH}"/XSLT/index.xsl -o:"${PROJECT_FOLDER_PATH}"/HTML schemasFolder="${SCHEMAS_FOLDER}"
and transform all the xml files in a folder.
When I run the following using saxon-js xslt3 -s:"${SCHEMAS_FOLDER}" -xsl:"${PROJECT_FOLDER_PATH}"/XSLT/index.xsl -o:"${PROJECT_FOLDER_PATH}"/HTML schemasFolder="${SCHEMAS_FOLDER}" -t
, I get the following error message: "Failed to read XML source input (Failed to read /Users/xxx/Dev/s1000d-schemas-viewer/Data (EISDIR: illegal operation on a directory, read))".
I am new to saxon-js and node.js and trying to read the documentation but so far haven't seen anything related to this
Upvotes: 0
Views: 40