I'm just about done with a Java application similar to Eugene Kim's Purple,
called PLink. You can feed it any XHTML or well-formed HTML document
and it'll spit it out with the little purple links as per Purple or
the bootstrap.org web pages. It currently pays attention to headings,
<p>, <blockquote>, and list items.
I worked on it last weekend and will likely finish it this weekend. Any
feature requests will be taken seriously, though time is limited. It's
based on Xerces and will also validate if you like:
Usage: java plink [-VLShnpvw] [-(s|x) source] [-o output_file]
where options include:
-V show version information
-L include legacy link targets ('name' attribute)
-S include sequential links
-h displays the command line options
-n XML namespace-aware parsing
-o sysid output file base name (stdout if not specified)
-p plink-ize XHTML file
-s sysid systemId of XHTML source
-x sysid same as -LSpws (standard PLink mode)
-v verbose messages
-w well-formed parse (default is validation)
My best guess for people's wish list would be:
-k use xlink rather than HTML links
-e "a b c" set list of significant element types
which would allow PLink to be used with other markup languages than
XHTML or well-formed HTML. This won't make it in version 1.0, but I'm
open to suggestion. The processor adds a <link rel="stylesheet" />
element to the output that points to an external style sheet, so the
particular link styling is up to the author (although a default
stylesheet will be included).
Murray
...........................................................................
Murray Altheim <mailto:altheim@eng.sun.com>
XML Technology Center
Sun Microsystems, Inc., MS MPK17-102, 1601 Willow Rd., Menlo Park, CA 94025
In the evening
The rice leaves in the garden
Rustle in the autumn wind
That blows through my reed hut. -- Minamoto no Tsunenobu
This archive was generated by hypermail 2.0.0 : Tue Aug 21 2001 - 17:58:04 PDT