- My ${java.home} is C:\Program Files\Java\jdk1.7.0_51.
- I extracted saxonHE9-6-0-6J.zip in C:\Program Files\Java\jdk1.7.0_51\jre\lib\ext
- and add saxonhe9.jar to my classpath variable.
Then I created a jaxp.properties file under C:\Program Files\Java\jdk1.7.0_51\jre\lib and add the following lines:
javax.xml.transform.TransformerFactory = net.sf.saxon.TransformerFactoryImpl javax.xml.xpath.XPathFactory","net.sf.saxon.xpath.XPathFactoryImpl
For testing I use in my stylesheet the following lines
<xsl:for-each select="//*[@type='Usage']/@name">
<xsl:value-of select="." separator="', '"/>
</xsl:for-each>
But the output of
StreamResult result = new StreamResult(System.out);
transformer.transform(source, result);
is a string withoput commas.