I am trying to create a DOMSource from a Node pulled from an XML Document. I have a reports.xml file in the following format:
<reports>
<report name = "report1">
<!--report definition here-->
</report>
<report name = "report2">
<!--report definition here-->
</report>
</reports>
And am using the DOM to pick out the report Node I want. I then try to create a DOMSource using this report Node, so that i can perform an XSLT transformation using Xalan to present the report.
The problem I get is that the transformation seems to transform _all_ the report Nodes, not just the one I have selected and passed into the DOMSource constructor.
So what I need to know is how do I create a DOMSource using only the selected report Node?
Cheers , Ben
<reports>
<report name = "report1">
<!--report definition here-->
</report>
<report name = "report2">
<!--report definition here-->
</report>
</reports>
And am using the DOM to pick out the report Node I want. I then try to create a DOMSource using this report Node, so that i can perform an XSLT transformation using Xalan to present the report.
The problem I get is that the transformation seems to transform _all_ the report Nodes, not just the one I have selected and passed into the DOMSource constructor.
So what I need to know is how do I create a DOMSource using only the selected report Node?
Cheers , Ben