Seahawk converts raw MOBY XML into HTML
suitable for display in a javax.swing.JEditorPane
. This
conversion is done using an XSLT processor (discovered at run-time
using the JAX-T API), and an XSLT stylesheet.
The default stylesheet can be seen here.
The conventions used are:
sourceURL
is available to the stylesheet,
and contains the URL of the document being convertedhttp://moby/namespace_value?id=id_value
will be used by Seahawk to construct base MOBY Objects for linking out to MOBY Services
The default stylesheet loaded by Seahawk come from the resource
"docs/moby2HTML.xsl"
.
This resource is in the Seahawk JAR file, and it could be updated using the
Java Development Kit (JDK) JAR utilities. An easier way to change the default mappings
file is to set the system property seahawk.stylesheet
. For example, on the command line:
or in your program code, before creating thejava -Dseahawk.stylesheet=path/to/newstylesheet.xsl -jar seahawk.jar
MobyClient
:
System.setProperty(MobyContentGUI.RESOURCE_SYSTEM_PROPERTY, "path/to/newstylesheet.xsl");