Hi all,
I've been using wget on RHL to great success as part of a static website cook-deploy module for a cms (ezpublish), written in bash.
However, when parsing for page dependencies, wget ignores anything inside HTML/SGML comments - which obviously includes M$'s conditional comments, used to feed specific CSS rules to specific versions of Internet Explorer.
Now wget does a grand job of post-processing linked elements (<a>, <link>, <area> etc) in each .html document once downloaded using -k, but because it can't 'see' the M$ conditional comments (They being legit HTML comments) then paths to those IE specific CSS files, referenced in <link> tags inside the conditionals, are not converted like others are.
Is there a way to get wget to convert - as normal - such <link> elements or ignore a specific form of comment or arbitrary string (In this case each IE open/close conditional comment) without having to write some contrived shell code with find/sed/perl/whatever to post-process what wget ignores with -k?
* wget version: - GNU Wget 1.11.4 (Red Hat modified)
* wget command:
#> wget -Emp -nH -k -P/my/local/dir \
--follow-ftp --no-cache --cut-dirs=1 \
-a deploy.log
http://my-host.co.nz:8087/my-site
Many thanks for your time and if you need more info - just ask.
Cheers