Utitlity class which transforms an xhtml model:
It replaces the references to external js/css files
by their contents.
The transformations in detail (using "[]" for tags:):
[head]
[link href='XXXX.css' type='text/css' rel='stylesheet' /]
[script type='text/javascript' src='XXXX.js']￯ [/script]
==>
[style type='text/css']CONTENTS OF XXXX.css[/style]
[script type='text/javascript' ]
￯ <-- RAUS !!!!???
CONTENTS OF XXXX.js [/script]
The following transformation is desirable, but NOT possible
without breaking type correctness of the xhtml tdom.
Therefore it can be only done when WRITING OUT the model to a
content printer.
[body]
[object title='graph of entity usage' data='x3.ent.svg'
type='image/svg+xml' height='4255px' width='384px']
Here should appear an SVG visualization, but your browser ...
[/object]
---- and an svg file like ---
[svg version="1.1" width="560px" height="235px"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" ]
[title]TITLE FIXME[/title]
[defs]
[script type="text/javascript" xlink:href="renderedDtd.js"]
[style type="text/css"}
line.nolit { stroke:none; }
line.lit_trg { stroke:red ; stroke-width:1px; }
line.lit_src { stroke:gray ; stroke-width:3px; stroke-dasharray:5px 3
...
[/style]
[/defs]
[g fill-opacitiy="0.0"]
[text x="...." ]
[/g]
[/svg]
==>
[svg version="1.1" xmlns="http://www.w3.org/2000/svg"
height='4255px' width='384px']
CONTENTS OF SVG FILE
FIXME not clear what to do with LOCALLY included js/css !?!?
[/svg]