[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <TXT SRC="[URL]">
This kind of thing will all be taken care of by XML,
e.g. by using XML's "&[name];" entity reference that
you already know from the special characters in HTML.
In XML, you'll be able to specify the source for this in the
DTD (Doc Type Definition), and place e.g. a URL for a script
under a "src" like attribute.
This kind of thing will also allow you to create a document
of say, a whole book where all you do is reference the chapter entities,
e.g.
<?XML version="1.0"?>
<!DOCTYPE doc .......[
// DTD goes here
<!ENTITY chapter1 SYSTEM "chap1.xml">
]>
<doc>
<body>
&chapter1;
&chapter2;
...
&appendixA;
&appendixB;
...
</body>
</doc>
It will also take care of the broken link issue, b/c you will be able
to reference links in your doc as named entities rather than a URL,
and have all the URL stuff in a separate file (a so-called link farm),
that you can run a script on to test the URLs and replace or delete
broken ones.
Lot's of people are making these requests for extensions to
HTML, when XML is going to replace HTML (for anything more
serious than casual web site dabbling) anyway.
Learn more about XML at the W3C site
http://www.w3.org/XML
-- Alex
Sebastian Crowley wrote:
> This is maybe a Mozilla HTML addition, not an addition to Mozilla ...
>
> Okay, the wish is this:
>
> To be able to replicate Server Side Include within a webpage, without
> needing a Web server supporting SSI/ASP pages or whatever. Modelled on
> the <IMG SRC="[URL"> tag, you get to call a seperate text/plain or
> text/html file into the body of web page.
>
> I once created a webcounter as a tiny CGI script. I wanted the
> response to be sent back as plain text, not as an image, but I had no
> real way to do it without a lot of fiddling around with SSI or other
> server-side tools. With a <TXT SRC> tag, I could reference the Counter
> as <TXT SRC="http://www.fubar.com/cgi-bin/counter.cgi"> and have the
> response dropped into the body of the page. Maybe even specifying a
> max character length, too.
>
> It would also allow me create portions of webpages and called into a
> parent page. I figure something like:
>
> <FONT FACE="arial" SIZE=+1>
> <PRE>
> <TXT SRC="[URL]">
> </PRE>
> </FONT>
>
> Would allow me to specify a basic format and have the text called in
> when required. It would allow to run randomized text includes from
> scripts at the server, too, each time the page was called, or chunks
> of text from a mutiplicity of locations.
>
> SC
This mailing list archive is a service of Copilotco.