Subject: Re: Generating TOCs or overviews?
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Fri, 27 Aug 1999 16:50:07 +0100
|
Kai Großjohann wrote:
>
> We have a bunch of XML files, each describing a project. The files
> are converted to HTML with XT and then shown to the user. We would
> now like to automatically generate an overview of all projects,
> including links to the project. (The overview would contain the
> project title and a short description, say, plus a link to the
> complete file.)
>
> How does one conventionally go about this?
>
> We concat all files, surround them with a start and end tag (to make
> it valid XML), and then we could use an XSL script to only emit the
> interesting parts.
>
> But somehow, this doesn't seem to be the right way. But maybe it is
> the right way? How should this be done?
>
You could make this slightly simpler by using XML system entities in
your XML overview, eg:
<?xml version="1.0"?>
<!DOCTYPE myOverview [
<!ENTITY project01 SYSTEM "project01.xml">
<!-- and the rest of the projects ... -->
]>
<myOverview>
&project01;
<!-- and the rest ... -->
</myOverview>
Francis.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|