|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Generating TOCs or overviews?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








