Subject:Passing Parameters and Multiple Inputs in Stylesheet Author:Clarice Ogburn Date:10 Mar 2016 09:31 PM
We are working on a project that would require multiple inputs to transform into a single output.
In the current stylesheet, there are two input documents. Both XML. However, when the stub code is generated in Stylus Studio, we noticed that there was only 1 "inputURI" instead of "2". We also noticed that the reference to the second input document was saved as a part of the Stylesheet under <"MapperInfo">
Is there a way to pass parameters for the input documents that will be transformed by the stylesheet.
Another Scenario that was discussed was passing in XML Document and JSON Document as input to a stylesheet.
Lastly, we noticed that the inputURI's are normally strings, but could you use the Java "String Object" instead.
Ultimately, We want to be able to send multiple documents using java code to the transformer using either String or Objects which might point to JSON or XML documents.
Subject:Passing Parameters and Multiple Inputs in Stylesheet Author:Clarice Ogburn Date:14 Mar 2016 08:57 PM
I followed the instructions given. However,when I try and compile the stylesheet, I get the following error.
Recoverable error: file:///c:/Users/cogburn/DOCUME~1/DATA_D~1/DATA_D~1/TEST_2~2.XSL: line 3: An attribute whose value must be a QName or whitespace-separated list of QNames had the value '837 Head Input'
Recoverable error: file:///c:/Users/cogburn/DOCUME~1/DATA_D~1/DATA_D~1/TEST_2~2.XSL: line 4: An attribute whose value must be a QName or whitespace-separated list of QNames had the value '837 Head Schema'
After I righch Click and select Global variable, it asks for a name which, I entered the names "837 Head Schema" and "837 Head Input".
I'm also attaching a screenshot of my parameters view.