mark126@gmail.com wrote:
[color=blue]
> If this is not the right group for this question, please advise me of a
> better one.
>
> I have a collection of simple HTML files, many of which just contain a
> paragraph or two of text. Some contain just an IMG and a one line
> caption. I would like to find a tool that will load the first page
> (call it toc.html) and anywhere it finds a link, it should replace the
> link with the BODY of the linked page. If that BODY contains further
> links, it should be similarly processed. (I don't care if the file is
> processed recursively or if I have to run several passes of the tool.)
>
> For example, suppose I have 4 files like so (I'm not showing the HTML
> tags):
>
> toc.html
> -------
> Table of Contents
> Article 1
> [link to article1.html]
> Article 2
> [link to article2.html]
>
>
> article1.html
> -----------
> This is article 1. It is very short.
>
> article2.html
> -----------
> This is article 2. It contains a tip.
> [link to tip.html]
>
> tip.html
> -------
> Don't put things in your ears.
>
>
> I want to be able to process toc.html and end up with an HTML file like
> this:
>
> newtoc.html
> ----------
> Table of Contents
> Article 1
> This is article 1. It is very short.
> Article 2
> This is article 2. It contains a tip.
> Don't put things in your ears.
>
>
> In my case, the nesting goes a few levels deeper. Some articles have 20
> categories of tips, each category page has one or more tips linked by
> the title of the tip. I would like to retain the HTML markup (it is
> just very simple headings, paragraphs, italics, etc.) so that I can
> process the combined file with html2latex and end up with a nice
> looking PDF I can print and read away from a computer.
>
> I am sure I am not the first person wanting to do something like this,
> but so far I have not been able to come up with the right input to
> Google to find a premade tool.[/color]
Do you really want to use links, as in <a href=...>, or are you just
looking for a method? If you have PHP installed on the server, you can
just call these other files like so: <?php include "filename.ext" ?>
Any serverside language will do though, and then there's Server Side
Includes (SSI) (which I know nothing about :-) )
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Pearl Jam - Dirty Frank