*/
public int doEndTag()
throws JspException
{
try {
PageContextImpl pageContext = (PageContextImpl) this.pageContext;
ELContext env = pageContext.getELContext();
JspWriter out = pageContext.getOut();
TransformerFactory factory = TransformerFactory.newInstance();
Source source = getSource(_xslt, _xsltSystemId);
Transformer transformer = factory.newTransformer(source);
for (int i = 0; i < _paramNames.size(); i++) {
String name = _paramNames.get(i);
String value = _paramValues.get(i);
transformer.setParameter(name, value);
}
if (_xml != null)
source = getSource(_xml, _xmlSystemId);
else {
BodyContent bodyContent = getBodyContent();
source = new StreamSource(bodyContent.getReader());
source.setSystemId(((HttpServletRequest) pageContext.getRequest()).getRequestURI());
}
Result result;
Node top = null;