1

I am trying to use node_xslt for transforming an XML file to another XML file. I have no clue what those parameters that should be passed into 'tranform' function... If someone knows how to use node_xslt, please explain what those parameters are. As mentioned in the ReadMe.md ,

transformedString = xslt.transform(stylesheet, document, parameters);
   // transform
   // Arguments:
   //  * stylesheet: stylesheet object
   //  * document: document object
   //  * parameters: an array of parameters to be passed to the stylesheet. length must be multiple of 2.
   //        Example: ['param1Name', 'param1Value', 'param2Name', 'param2Value']

what are these parameters, passed as the third one? Thanks

1 Answer 1

2

Here is the documentation regarding PI Parameters:

https://developer.mozilla.org/en-US/docs/XSLT/PI_Parameters

It's basically allows you to pass parameters to a stylesheet when executing it

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.