forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <>
Subject Re: overview of @token@ use
Date Thu, 25 Jul 2002 21:48:12 GMT
Marc Portier wrote:
>>Go ahead.
> I am on the build stuff, 
> I'm not actually on the xslt, hoping more skilled people could do that.

I did. It roughly goes like this:
A project.xml descruiption file

    <hierarchy> <!-- organisational embedding -->
         <name>Apache Foundation</name>
         <name>Apache XML</name>
      <context>Apache XML</context>\
    ... whatever else

aggregate with the global tab.xml and per directory book.xmk

   <map:aggregate ...>
     <map:part src="/project.xml"/>
     <map:part src="/tab.xml"/
     <map:part src="book.xml"/
     <map:part src="{1}"/> <!-- the document -->
   <map:transform src="/path/to/skin/document2html.xsl/>

The skin transformation refers to the data as usual:

   <xsl:template match="top">
         <title><xsl:apply-templates select="document/head/title"/></title>
         <link ...>
                 <tr><xsl:apply-templates select="project/logo"/></tr>
                 <tr><xsl:apply-templates select="tabs"/></tr>
                 <tr><xsl:apply-templates select="book"/></tr>
               <xsl:apply-templates select="project/hierarchy"/>
               <xsl:apply-templates select="document/body"/>

Unfortunately I have the real code at work now. I'll
post it ASAP, as usual :-). Well, I'll try.

Any ideas about
- what should go into the "project global data file" (logo, hierarchy,
   project manager :-), copyrights statements, disclaimers...
- where should it be placed (project root dir, project document
   root dir, some special dir)
- how it should be named


View raw message