Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Of course, you can always ask an XSLt XSLT expert (i.e. me) to write you a style sheet...

...

Code Block
String xml = ...;
URL url = TestClass.class.getResource("myxslt.xsl");

TextDispModel textDispModel = null;
try {
textDispModel = TextDispModel.newDefault(xml, url);
} catch (IOException e) {
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
}
String
TextDispViewer htmltextDispViewer = new textDispModel.getStyledDataTextDispViewer();
SystemtextDispViewer.out.printlnsetModel(htmltextDispModel);

Tweak your XSLT, until you're satisfied with your HTML.