I am taking a xml document and marking it up with a xsl document. And out putting the result as html in a java GUI (JtextPane). I can get it to display as html, but I need the bullets for my list elements to be one of three different images. Basically I have a fail, pass, and inspect image I need to use in place of the bullets. So once I even do replace the bullets I need to write conditions for what replaces what bullet somehow in java. I tried things like EditorKit, StyleSheet, addRule...
I don't have any of the code available at the moment to show, but basically < html>< style> class.li (image-type-url: {image path};)< /style>< /html> not being recognized at all... Is this because JTextPane does not have a style tag? But how does it know it's a list then to even use the bullets?
No comments:
Post a Comment