[pmwiki-users] HTMLDoctypeFmt etc
Knut Alboldt
pmwiki at alboldt.de
Fri Apr 28 16:17:08 CDT 2006
I played arround a bit with SVG, pmwiki, inkscape and firefox.
To use embedded SVG in Firefox 1.5 (not using the <object>-tag) I had to
change the HTTP-Header and the $HTMLDoctypeFmt (I had to use XML-files
instead of html or xhtml)
So I did change $HTMLDoctypeFmt for testing within a test-copy of
pmwiki.php - but I wasn't used.
So I searched a bit and found out that the <!DOCTYPE-Statement is set
several times in pmwikie.php and within the skin-template-files.
So now my question: why does $HTMLDoctypeFmt exists when it's not used ?
And is there a possibility to change this information in any config-file ?
I want to use embeded SVG cause then I could change the SVG-contents
(e.g. links, dynamic information etc) when displaying the svg-file by
filtering it before sending it to the browser.
I tried a lot but at last I couldn't get it working cause the generated
HTML is not XHTML or XML conform (e.g. Header-Markups are generating
<p>-tags which aren't closed).
Anyway, I found another way to embed "dynamic" SVG, i.e. SVG-files which
contents can be changed before displaying by using something like
<object ...
data="/path-to-wiki-page?n=pagename?action=showsvg?attachment=imgfile.svg>
So now I can use link-abbreviation in SVG-files (like $pagename) and
expand them to complete wiki-url's when displaying the svg-file as well
as adding dynamic information to the svg (e.g. text) when displaying it.
I edit the svg's with inkscape and working on a solution to use that all
like pmwikidraw - with the only caveat that I can't use it on the web
but I have to have "local" access to the attachment-dir (we use it only
in the intranet, so we have "local" access to it).
This offers a fine possibility to edit images (svg's) in a wiki without
any down/upload of attachments. (we use pmwiki in our company as a
IT-management-system).
I think I'll set up a recipe in cookbook's area when all is running.
Has anybody else tested with embedded svg ?
Knut
Knut
More information about the pmwiki-users
mailing list