I have a servlet that uses the TransformerFactory to produce html from an XML and XSL document. I only want to show a specific part of the XML document however, and which part depends on another function in the servlet.
I'm not sure how to approach this problem. Should I first edit the xsl file and then do the transformation ? Should I first select the xml data I need before doing the transformation ? Or are there better alternatives ?
I'm not sure how to approach this problem. Should I first edit the xsl file and then do the transformation ? Should I first select the xml data I need before doing the transformation ? Or are there better alternatives ?