I try to set XSL property for my marshaller like this (which I copied from here) :
marshaller.setProperty("com.sun.xml.bind.xmlHeaders", "<?xml-stylesheet type='text/xsl' href=\"" + xslFileName + "\" ?>"); But it causes javax.xml.bind.PropertyException with this message :
name: com.sun.xml.bind.xmlHeaders value: <?xml-stylesheet type='text/xsl' href="decathlon.xsl" ?> "very informative"
Sorry, but I cannot elaborate more, frankly I have no idea what causes this.