I know it’s possible to create java objects and call methods from XSLT. If the method I’m calling returns a DOM document is it possible to merge that into the XML document being processed?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The way external calls from XSLT to Java behave depends entirely on the XSLT processor you are using – it’s not defined in the standard. I would expect the answer is yes – the DOM document will be made visible as a node and can be processed like any other node (for exmaple, it can be copied to the result tree using xsl:copy-of) – but you can only ask the question in relation to a specific XSLT processor.