forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
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

  <project>
    <logo>...</logo>
    <hierarchy> <!-- organisational embedding -->
      <organisation>
         <name>Apache Foundation</name>
         <href>http://www.apache.org</href>
         <logo>
            <src>/images/apache.gif</src>
            <height>...</height>
            ...
         </logo>
       </organisation>
      <organisation>
         <name>Apache XML</name>
          ...
      </organisation>
    </hierarchy>
    <search>
      <context>Apache XML</context>\
      <command>...</command>
    </search>
    ... whatever else
  </project>

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:aggregate>
   <map:transform src="/path/to/skin/document2html.xsl/>

The skin transformation refers to the data as usual:

   <xsl:template match="top">
     <html>
       <head>
         <title><xsl:apply-templates select="document/head/title"/></title>
         <link ...>
       </head>
       <body>
         <table>
           <tr>
             <td>
               <table>
                 <tr><xsl:apply-templates select="project/logo"/></tr>
                 <tr><xsl:apply-templates select="tabs"/></tr>
                 <tr><xsl:apply-templates select="book"/></tr>
              </table>
             </td>
             <td>
               <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

J.Pietschmann


Mime
View raw message