I am trying to set the XSL property for my marshaller as follows ( which I copied here ):
marshaller.setProperty("com.sun.xml.bind.xmlHeaders", "<?xml-stylesheet type='text/xsl' href=\"" + xslFileName + "\" ?>");
But this raises a 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 canβt tell in detail that I donβt know what causes this.
source share