I want to modify some element values like font size,color in xslt through java. I tried with following java code
File xslFile = new File("D:/header.xsl");
System.out.println(xslFile.getPath());
javax.xml.transform.Source xsltSource = new javax.xml.transform.stream.StreamSource(xslFile);
javax.xml.transform.TransformerFactory transformerFactory = javax.xml.transform.TransformerFactory.newInstance();
javax.xml.transform.Transformer xsltTransformer = transformerFactory.newTransformer(xsltSource);
xsltTransformer.setParameter("clr", "red");
The java code building successfully but the value is not reflecting into xsl stylesheet.