TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Removing all embedded style information in HTML files
Subject:Removing all embedded style information in HTML files From:Shreyas Doshi <shreyasd -at- relsys -dot- net> To:"TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com> Date:Thu, 4 Apr 2002 10:49:39 -0800
Hi all,
I was wondering if there is tool to remove *all* embedded styles from HTML
tags in a group of HTML files.
I am having to deal with a situation in which I have been made responsible
for a bunch (around 800-1000) of HTML files, all of which contain a lot of
embedded styles within the tags. I am hoping to clear the mess by
associating a single external style sheet instead, and using embedded styles
only when absolutely necessary. For instance: use style info. within a tag
only when a certain paragraph is an exception to the rule.
To remove all this style info., I am currently using a tool called
Search+Replace (search a particular type of style string, replace it by
blanks). Doing so is a very painful process if the variations in embedded
style strings among documents is considerable. Its painful even when I use
regular expressions.
Please let me know if I can use a tool to make my life simpler. 80% of the
time I currently spend on this project is being spent in this mechanical
process of search and replace. Alternatively, if I am using the totally
"wrong" approach to solve the problem I am facing (once again: the problem
is to remove all the embedded styles from all tags of an HTML file) please
let me know "the right path". I do not mind doing some coding (like writing
some sort of scripts) to solve this problem.
I am on a digest, so I would be glad if you could please cc: me on your
reply.
Thank you,
Cheers,
Shreyas.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Are you using Doc-to-Help or ForeHelp? Switch to RoboHelp for Word for $249
or to RoboHelp Office for only $499. Get the PC Magazine five-star rated
Help authoring tool for less! Go to http://www.ehelp.com/techwr
Free copy of ARTS PDF Tools when you register for the PDF
Conference by April 30. Leading-Edge Practices for Enterprise
& Government, June 3-5, Bethesda,MD. www.PDFConference.com
---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit http://www.raycomm.com/techwhirl/ for more resources and info.