diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-05-19 18:10:21 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-05-19 18:10:21 +0000 |
commit | 99d4de66e59c134ba34d61562a03924eddc7df8a (patch) | |
tree | 8d090c2b3a5a19f9654b543da753da53d8baa4a4 /print.h | |
parent | 375b1bf4b4331f466acafb1b632a72cc90c76d05 (diff) | |
download | wireshark-99d4de66e59c134ba34d61562a03924eddc7df8a.tar.gz wireshark-99d4de66e59c134ba34d61562a03924eddc7df8a.tar.bz2 wireshark-99d4de66e59c134ba34d61562a03924eddc7df8a.zip |
From Dirk Jagdmann via bug 5875:
My attachment adds a link to a XSLT file to the preamble of the PDML.
The XSLT will transform the PDML to a HTML page, and the HTML page
features a look similar to Wireshark. See
http://cubic.org/~doj/ebay/a.pdml for an example.
The patch also contains a small perl program which converts the
Wireshark colortable into javascript code which is used in the XSLT
file. If you want to use a different color scheme you would execute the
perl program and insert the generated javascript function into your XSLT
file.
To view the HTML you could either place the PDML and XSLT file on your
webserver and verify that your webserver sends the PDML file as
"text/xml". Then your webbrowser will find the linked XSLT file,
download that as well and convert the PDML to HTML on the fly.
You could also use an XSLT processor like xsltproc to convert the PDML
and XSLT into a static HTML file.
From me:
Minor fixups.
svn path=/trunk/; revision=37298
Diffstat (limited to 'print.h')
-rw-r--r-- | print.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -133,7 +133,7 @@ extern gboolean proto_tree_print(print_args_t *print_args, epan_dissect_t *edt, print_stream_t *stream); extern gboolean print_hex_data(print_stream_t *stream, epan_dissect_t *edt); -extern void write_pdml_preamble(FILE *fh); +extern void write_pdml_preamble(FILE *fh, const gchar* filename); extern void proto_tree_write_pdml(epan_dissect_t *edt, FILE *fh); extern void write_pdml_finale(FILE *fh); |