xml-general-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-site/sources newstylecreate.bat newstylecreate1.bat newstylewebsite.bat
Date Mon, 12 Nov 2001 18:16:03 GMT
bloritsch    01/11/12 10:16:03

  Added:       .        newrun.bat
               newstyle loader.xml
               newstyle/resources dot.gif footer-bkg.gif footer-corner1.gif
                        footer-corner2.gif logo.gif logo1.gif logo2.gif
                        nav-bot-bkg.gif nav-bot-corner1.gif
                        nav-bot-corner2.gif nav-top-bkg.gif
                        nav-top-corner1.gif nav-top-corner2.gif null.gif
                        sel.gif sky.jpg style.css
               newstyle/stylesheets book2project.xsl changes2document.xsl
                        copyover.xsl directory2project.xsl
                        document2html.xsl document2project.xsl
                        faqs2document.xsl scan4resources.xsl spec2html.xsl
                        todo2document.xsl
               sources  newstylecreate.bat newstylecreate1.bat
                        newstylewebsite.bat
  Log:
  Add new style to build process
  
  Revision  Changes    Path
  1.1                  xml-site/newrun.bat
  
  Index: newrun.bat
  ===================================================================
  @echo off
  cd sources
  call newstylewebsite.bat
  call newstylecreate.bat xerces-j
  call newstylecreate.bat xerces-c
  call newstylecreate.bat xerces-p
  call newstylecreate1.bat xalan
  call newstylecreate.bat fop
  call newstylecreate.bat cocoon
  call newstylecreate.bat xang
  call newstylecreate.bat batik
  call newstylecreate.bat crimson
  call newstylecreate.bat security
  cd ..
  
  
  
  1.1                  xml-site/newstyle/loader.xml
  
  Index: loader.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <!-- CVS $Revision: 1.1 $ $Date: 2001/11/12 18:16:02 $ -->
  
  <loader>
    <processor name="xslt">
      <parameter name="stylesheet" value="sbk:/style/stylesheets/book2project.xsl"/>
    </processor>
  </loader>
  
  
  
  1.1                  xml-site/newstyle/resources/dot.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/footer-bkg.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/footer-corner1.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/footer-corner2.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/logo.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/logo1.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/logo2.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/nav-bot-bkg.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/nav-bot-corner1.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/nav-bot-corner2.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/nav-top-bkg.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/nav-top-corner1.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/nav-top-corner2.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/null.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/sel.gif
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/sky.jpg
  
  	<<Binary file>>
  
  
  1.1                  xml-site/newstyle/resources/style.css
  
  Index: style.css
  ===================================================================
  BODY {
      FONT-FAMILY: arial,helvetica,sans-serif
  }
  .title {
      FONT-WEIGHT: bold; FONT-SIZE: 18pt; COLOR: #000000; FONT-FAMILY: arial,helvetica,sans-serif
  }
  .head {
      FONT-WEIGHT: bold; FONT-SIZE: 18pt; COLOR: #003366; FONT-FAMILY: arial,helvetica,sans-serif
  }
  .subhead {
      FONT-WEIGHT: bold; FONT-SIZE: 14pt; COLOR: #003366; FONT-STYLE: italic; FONT-FAMILY:
arial,helvetica,sans-serif
  }
  .s1 {
      FONT-WEIGHT: bold; FONT-SIZE: 14pt; COLOR: #003366; FONT-FAMILY: arial,helvetica,sans-serif
  }
  .s2 {
      FONT-WEIGHT: bold; FONT-SIZE: 14pt; COLOR: #003366; FONT-STYLE: italic; FONT-FAMILY:
arial,helvetica,sans-serif
  }
  .s3 {
      FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #003366; FONT-FAMILY: arial,helvetica,sans-serif
  }
  .s4 {
      FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #003366; FONT-STYLE: italic; FONT-FAMILY:
arial,helvetica,sans-serif
  }
  .s5 {
      FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #003366; FONT-FAMILY: arial,helvetica,sans-serif
  }
  .s6 {
      FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #003366; FONT-STYLE: italic; FONT-FAMILY:
arial,helvetica,sans-serif
  }
  .s7 {
      FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #003366; FONT-FAMILY: arial,helvetica,sans-serif
  }
  .s8 {
      FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #003366; FONT-STYLE: italic; FONT-FAMILY:
arial,helvetica,sans-serif
  }
  .s9 {
      TEXT-ALIGN: center; FONT-WEIGHT: bold; FONT-SIZE: 8pt; COLOR: #003366; FONT-STYLE: italic;
FONT-FAMILY: arial,helvetica,sans-serif
  }
  .white {
      FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #ffffff; FONT-FAMILY: arial,helvetica,sans-serif
  }
  DIV {
      FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: arial,helvetica,sans-serif
  }
  SPAN {
      FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: arial,helvetica,sans-serif
  }
  P {
      FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: arial,helvetica,sans-serif
  }
  PRE {
      FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: courier,monospace;
  }
  .path {
      FONT-SIZE: 10pt; COLOR: #003366; FONT-FAMILY: arial,helvetica,sans-serif
  }
  .copy {
      FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: arial,helvetica,sans-serif
  }
  A {
      FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: arial,helvetica,sans-serif
  }
  A:hover {
      FONT-SIZE: 10pt; COLOR: #990000; FONT-FAMILY: arial,helvetica,sans-serif
  }
  A.nav {
      FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: arial,helvetica,sans-serif; TEXT-DECORATION:
none
  }
  A.nav:hover {
      FONT-SIZE: 8pt; COLOR: #990000; FONT-FAMILY: arial,helvetica,sans-serif; TEXT-DECORATION:
underline
  }
  
  
  
  1.1                  xml-site/newstyle/stylesheets/book2project.xsl
  
  Index: book2project.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
    <!-- match the root book element -->
    <xsl:template match="book">
      <project>
  
        <parameter name="copyright" value="{@copyright}"/>
        <parameter name="name" value="{@software}"/>
  
        <!-- copy all resources to the targets -->
        <process source="sbk:/style/resources/" producer="directory">
          <processor name="xslt">
            <parameter name="stylesheet" value="sbk:/style/stylesheets/directory2project.xsl"/>
            <parameter name="base" value="resources/"/>
          </processor>
        </process>
  
        <xsl:apply-templates/>
  
      </project>
    </xsl:template>
  
    <xsl:template match="page|hidden">
      <process source="{@source}" producer="parser">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/scan4resources.xsl"/>
        </processor>
      </process>
  
      <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
        <processor name="xslt">
          <parameter name="id" value="{@id}"/>
          <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
        </processor>
      </create>
    </xsl:template>
  
    <xsl:template match="spec">
      <process source="{@source}" producer="parser">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/scan4resources.xsl"/>
        </processor>
      </process>
  
      <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
        <processor name="xslt">
          <parameter name="id" value="{@id}"/>
          <parameter name="stylesheet" value="sbk:/style/stylesheets/spec2html.xsl"/>
        </processor>
      </create>
    </xsl:template>
    
    <xsl:template match="changes|faqs|todo">
      <process source="{@source}" producer="parser">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/{name(.)}2document.xsl"/>
        </processor>
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/scan4resources.xsl"/>
        </processor>
      </process>
  
      <create source="{@source}" target="{@id}.html" producer="parser" printer="html">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/{name(.)}2document.xsl"/>
        </processor>
        <processor name="xslt">
          <parameter name="id" value="{@id}"/>
          <parameter name="stylesheet" value="sbk:/style/stylesheets/document2html.xsl"/>
        </processor>
      </create>
    </xsl:template>
  </xsl:stylesheet>
  
  
  
  1.1                  xml-site/newstyle/stylesheets/changes2document.xsl
  
  Index: changes2document.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
   <xsl:import href="copyover.xsl"/>
  
   <xsl:param name="name"/>
  
   <xsl:variable name="bugzilla">http://nagoya.apache.org/bugzilla/show_bug.cgi?id=</xsl:variable>
  
   <xsl:template match="changes">
    <document>
     <header>
      <title><xsl:value-of select="@title"/></title>
     </header>
     <body>
      <xsl:apply-templates/>
     </body>
    </document>
   </xsl:template>
  
   <xsl:template match="release">
    <s2 title="{$name} {@version} ({@date})">
     <sl>
      <xsl:apply-templates/>
     </sl>
    </s2>
   </xsl:template>
  
   <xsl:template match="action">
    <li>
     <icon src="images/{@type}.jpg" alt="{@type}"/>
     <xsl:apply-templates/>
     <xsl:text>(</xsl:text><xsl:value-of select="@dev"/><xsl:text>)</xsl:text>
  
     <xsl:if test="@due-to">
      <xsl:text> Thanks to </xsl:text>
      <link href="mailto:{@due-to-email}"><xsl:value-of select="@due-to"/></link>
      <xsl:text>.</xsl:text>
     </xsl:if>
  
     <xsl:if test="@fixes-bug">
      <xsl:text> Fixes </xsl:text>
      <link href="{$bugzilla}{@fixes-bug}">
       <xsl:text>bug </xsl:text><xsl:value-of select="@fixes-bug"/>
      </link>
      <xsl:text>.</xsl:text>
     </xsl:if>
    </li>
   </xsl:template>
  
   <xsl:template match="devs">
    <!-- remove -->
   </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-site/newstyle/stylesheets/copyover.xsl
  
  Index: copyover.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
    <xsl:template match="@*|*|text()|processing-instruction()">
      <xsl:copy>
        <xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
      </xsl:copy>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-site/newstyle/stylesheets/directory2project.xsl
  
  Index: directory2project.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
    <xsl:param name="base"/>
  
    <xsl:template match="directory">
      <project>
        <xsl:apply-templates/>
      </project>
    </xsl:template>
  
    <xsl:template match="entry">
      <xsl:if test="not(@directory)">
        <resource source="{@href}" target="{$base}{@href}"/>
      </xsl:if>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-site/newstyle/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
   <xsl:import href="copyover.xsl"/>
  
   <xsl:param name="stylebook.project"/>
   <xsl:param name="copyright"/>
   <xsl:param name="id"/>
  
  <!-- ====================================================================== -->
  <!-- document section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="/">
    <!-- checks if this is the included document to avoid neverending loop -->
    <xsl:if test="not(book)">
    <html>
    <head>
      <title><xsl:value-of select="document/header/title"/></title>
      <link rel="stylesheet" type="text/css" href="resources/style.css" title="Simple Style"/>
    </head>
    <body bgcolor="#c4dbec" topmargin="3" leftmargin="0" marginheight="3" marginwidth="0">
      <a name="top"/>
      <!-- HEADER TABLE START -->
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td rowspan="5" width="6" bgcolor="#000000"><img src="resources/dot.gif"
width="6" height="1" border="0"/></td>
          <td rowspan="5" width="114" bgcolor="#000000"><a href="http://xml.apache.org/"><img
alt="xml.apache.org logo" src="resources/logo.gif" width="114" height="42" border="0"/></a></td>
          <td align="right" width="5" valign="top" bgcolor="#000000"><img name="deco"
src="resources/logo1.gif" width="5" height="5" border="0"/></td>
          <td colspan="2"></td>
        </tr>
        <tr>
          <td bgcolor="#000000"><img src="resources/dot.gif" width="5" height="1"
border="0"/></td>
          <td colspan="2" align="right" bgcolor="#003366" width="100%"><img src="resources/dot.gif"
width="2" height="1" border="0"/></td>
        </tr>
        <tr>
          <td bgcolor="#000000"><img src="resources/dot.gif" width="5" height="1"
border="0"/></td>
          <!-- TITLE CELL -->
          <td background="resources/sky.jpg"><span class="title"><xsl:value-of
select="document/header/title"/></span></td>
          <!-- LINK CELL -->
          <td background="resources/sky.jpg" align="right"><a class="nav" href="http://www.apache.org/">www.apache.org</a>&#160;&#160;&#160;<a
class="nav" href="http://www.w3c.org/">www.w3c.org</a>&#160;</td>
        </tr>
        <tr>
          <td bgcolor="#000000"><img src="resources/dot.gif" width="5" height="1"
border="0"/></td>
          <td colspan="2" align="right" bgcolor="#003366" width="100%"><img src="resources/dot.gif"
width="2" height="1" border="0"/></td>
        </tr>
        <tr>
          <td align="right" valign="bottom" bgcolor="#000000"><img src="resources/logo2.gif"
width="5" height="5" border="0"/></td>
          <td colspan="2"></td>
        </tr>
      </table>
      <!-- HEADER TABLE END -->
      <!-- NAVIGATION LEVEL TABLE START -->
      <img src="resources/dot.gif" width="135" height="1" border="0"/><span class="path"><a
class="nav" href="http://xml.apache.org/">xml.apache.org</a> &gt; <xsl:value-of
select="translate(document/header/title,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')"/></span>
      <!-- NAVIGATION LEVEL TABLE END -->
      <!-- CONTENT/MENU TABLE START -->
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td width="124"><img src="resources/nav-top-bkg.gif" width="120" height="5"
border="0"/><img src="resources/nav-top-corner1.gif" width="4" height="5" border="0"/></td>
          <td width="1"><img src="resources/nav-top-corner2.gif" width="1" height="5"
border="0"/></td>
          <td></td>
        </tr>
        <tr>
          <td bgcolor="#c4cbd8"><img src="resources/dot.gif" width="120" height="1"
border="0"/></td>
          <td bgcolor="#c4cbd8"><img src="resources/dot.gif" width="1" height="1"
border="0"/></td>
          <td align="right" bgcolor="#003366"><img src="resources/dot.gif" width="1"
height="1" border="0"/></td>
        </tr>
        <tr>
          <td valign="top" bgcolor="#c4cbd8">
            <!-- NAV TABLE -->
            <table width="120" cellspacing="0" cellpadding="1" border="0">
              <xsl:apply-templates select="document($stylebook.project)"/>
            </table>
            <!-- END NAV TABLE -->
          </td>
          <td bgcolor="#003366"><img src="resources/dot.gif" width="1" height="1"
border="0"/></td>
          <td valign="top" bgcolor="#ffffff">
            <!-- CONTENT TABLE -->
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
              <tr>
                <td><img src="resources/dot.gif" width="10" height="1" border="0"/></td>
                <td width="100%" valign="top"><span>
                  <br />
                  <xsl:apply-templates/>
                </span></td>
                <td>&#160;</td>
              </tr>
            </table>
            <!-- END CONTENT TABLE -->
          </td>
        </tr>
        <tr>
          <td><img src="resources/nav-bot-bkg.gif" width="120" height="5" border="0"/><img
src="resources/nav-bot-corner1.gif" width="4" height="5" border="0"/></td>
          <td bgcolor="#ffffff"><img src="resources/nav-bot-corner2.gif" width="1"
height="5" border="0"/></td>
          <td bgcolor="#ffffff"><img src="resources/dot.gif" width="1" height="1"
border="0"/></td>
        </tr>
      </table>
      <!-- CONTENT/MENU TABLE END -->
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <td width="5"><img src="resources/dot.gif" width="5" height="1" border="0"/></td>
          <td width="1" bgcolor="#003366"><img src="resources/dot.gif" width="1"
height="1" border="0"/></td>
          <td bgcolor="#ffffff" valign="top">
            <!-- FOOTER TABLE -->
            <br />
            <img src="resources/dot.gif" width="11" height="1" border="0"/>
            <span class="copy">Copyright &#x00A9; 1999-2001 The Apache Software
Foundation.  All Rights Reserved.</span>
          </td>
          <td bgcolor="#ffffff" valign="top" align="right">
            <br />
            <a class="nav" href="#top">top^</a>&#160;
          </td>
          <!-- END FOOTER TABLE -->
        </tr>
        <tr>
          <td><img src="resources/dot.gif" width="5" height="1" border="0"/></td>
          <td><img src="resources/footer-corner1.gif" width="1" height="5" border="0"/></td>
          <td background="resources/footer-bkg.gif"><img src="resources/footer-corner2.gif"
width="4" height="5" border="0"/><img src="resources/footer-bkg.gif" width="7" height="5"
border="0"/></td>
          <td background="resources/footer-bkg.gif"><img src="resources/dot.gif"
width="1" height="1" border="0"/></td>
        </tr>
      </table>
    </body>
  </html>
     </xsl:if>
     
     <xsl:if test="book">
      <xsl:apply-templates/>
     </xsl:if>
    </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- book section -->
  <!-- ====================================================================== -->
  
    <xsl:template match="book">
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="page|faqs|changes|todo|spec">
      <tr><td><xsl:if test="@id=$id"><img alt="pointer" src="resources/sel.gif"
width="7" height="7" border="0"/></xsl:if></td><td><xsl:if test="@id=$id">
        <xsl:value-of select="@label"/>
      </xsl:if>
      <xsl:if test="@id!=$id">
        <a href="{@id}.html"><xsl:value-of select="@label"/></a>
      </xsl:if>
      </td></tr>
    </xsl:template>
  
    <xsl:template match="external">
      <tr><td/><td><a href="{@href}"><xsl:value-of select="@label"/></a></td></tr>
    </xsl:template>
  
    <xsl:template match="separator">
      <tr><td/><td><br/></td></tr>
    </xsl:template>
    
  <!-- ====================================================================== -->
  <!-- header section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="header">
    <!-- ignore on general document -->
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- body section -->
  <!-- ====================================================================== -->
  
    <xsl:template match="s1">
      <br/>
      <div class="s1"><xsl:value-of select="@title"/></div>
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="s2">
      <br/>
      <div class="s2"><xsl:value-of select="@title"/></div>
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="s3">
      <br/>
      <div class="s3"><xsl:value-of select="@title"/></div>
      <xsl:apply-templates/>
    </xsl:template>
  
    <xsl:template match="s4">
      <br/>
      <div class="s4"><xsl:value-of select="@title"/></div>
      <xsl:apply-templates/>
    </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- footer section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="footer">
    <!-- ignore on general documents -->
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- paragraph section -->
  <!-- ====================================================================== -->
  
    <xsl:template match="note">
      <div align="center">
        <table border="0" width="50%" cellpadding="2" cellspacing="2">
          <tr>
            <td bgcolor="#c4cbd8">
              <font color="#023264" size="-1"><xsl:apply-templates/></font>
            </td>
          </tr>
        </table>
      </div>
    </xsl:template>
  
    <xsl:template match="source">
      <hr size="1" width="50%" align="left"/>
      <pre>
        <xsl:apply-templates/>
      </pre>
      <hr size="1" width="50%" align="left"/>
    </xsl:template>
  
    <xsl:template match="fixme">
     <!-- ignore on documentation -->
    </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- list section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="sl">
    <ul>
     <xsl:apply-templates/>
    </ul>
   </xsl:template>
  
   <xsl:template match="dt">
    <li>
     <strong><xsl:value-of select="."/></strong>
     <xsl:text> - </xsl:text>
     <xsl:apply-templates select="dd"/>   
    </li>
   </xsl:template>
   
  <!-- ====================================================================== -->
  <!-- table section -->
  <!-- ====================================================================== -->
  
  <!-- since we cloned the XHTML model, we don't need any futher styling      -->
  
  <!-- ====================================================================== -->
  <!-- markup section -->
  <!-- ====================================================================== -->
  
  <!-- since we cloned the XHTML model, we don't need any futher styling      -->
   
  <!-- ====================================================================== -->
  <!-- images section -->
  <!-- ====================================================================== -->
   <xsl:template match="figure|img|icon">
    <img src="{@src}" alt="{@alt}" class="{name(.)}"/>
   </xsl:template>
  
   <xsl:template match="document">
     <xsl:apply-templates/>
   </xsl:template>
  <!-- ====================================================================== -->
  <!-- links section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="link">
     <a href="{@href}"><xsl:apply-templates/></a>
   </xsl:template>
  
   <xsl:template match="connect">
    <xsl:apply-templates/>
   </xsl:template>
  
   <xsl:template match="jump">
     <a href="{@href}#{@anchor}"><xsl:apply-templates/></a>
   </xsl:template>
  
   <xsl:template match="fork">
     <a href="{@href}" target="_blank"><xsl:apply-templates/></a>
   </xsl:template>
  
   <xsl:template match="anchor">
     <a name="{@id}"><xsl:comment>anchor</xsl:comment></a>
   </xsl:template>  
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-site/newstyle/stylesheets/document2project.xsl
  
  Index: document2project.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
    <xsl:template match="/">
      <project>
        <xsl:apply-templates/>
      </project>
    </xsl:template>
  
    <xsl:template match="img|figure|icon">
      <resource source="{@src}" target="{@src}"/>
    </xsl:template>
  
    <xsl:template match="node()">
      <xsl:apply-templates/>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-site/newstyle/stylesheets/faqs2document.xsl
  
  Index: faqs2document.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
   <xsl:import href="copyover.xsl"/>
  
    <xsl:template match="faqs">
     <document>
      <header>
       <title><xsl:value-of select="@title"/></title>
      </header>
      <body>
        <s1 title="Questions">
         <ul>
          <xsl:apply-templates select="faq" mode="index"/>
         </ul>
        </s1>
        <s1 title="Answers">
          <xsl:apply-templates select="faq"/>
        </s1>
      </body>
     </document>  
    </xsl:template>
  
    <xsl:template match="faq" mode="index">
      <li>
        <jump anchor="faq-{position()}">
          <xsl:value-of select="question"/>
        </jump>
      </li>
    </xsl:template>
  
    <xsl:template match="faq">
      <anchor id="faq-{position()}"/>
      <s2 title="{question}">
        <xsl:apply-templates/>
      </s2>
    </xsl:template>
  
    <xsl:template match="question">
      <!-- ignored since already used -->
    </xsl:template>
  
    <xsl:template match="answer">
      <xsl:apply-templates/>
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-site/newstyle/stylesheets/scan4resources.xsl
  
  Index: scan4resources.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
    <xsl:template match="/">
      <project>
        <xsl:apply-templates/>
      </project>
    </xsl:template>
  
    <xsl:template match="img|figure|icon">
      <resource source="{@src}" target="{@src}"/>
    </xsl:template>
  
    <xsl:template match="text()">
       <!-- ignore -->
    </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-site/newstyle/stylesheets/spec2html.xsl
  
  Index: spec2html.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
  <!-- ====================================================================== -->
  <!-- inherit the document2html templates -->
  <!-- ====================================================================== -->
  
   <xsl:import href="document2html.xsl"/>
  
  <!-- ====================================================================== -->
  <!-- header -->
  <!-- ====================================================================== -->
  
   <xsl:template match="header">
     <table class="header">
      <tr>
       <td><b>Authors</b></td>
      </tr>
      <xsl:for-each select="authors/person">
       <tr>
        <td><b><xsl:value-of select="@name"/></b> - <xsl:value-of
select="@email"/></td>
       </tr>
      </xsl:for-each>
      <tr>
       <td>
        <b>Status</b>
       </td>
      </tr>
      <tr>
       <td><b><xsl:value-of select="type"/> - <xsl:value-of select="version"/></b></td>
      </tr>
      <tr>
       <td><b>Notice</b></td>
      </tr>
      <tr>
       <td><xsl:value-of select="notice"/></td>
      </tr>
      <tr>
       <td><b>Abstract</b></td>
      </tr>
      <tr>
       <td><xsl:value-of select="abstract"/></td>
      </tr>
     </table>
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- appendices section -->
  <!-- ====================================================================== -->
  
   <xsl:template match="appendices">
    <xsl:apply-templates/>
   </xsl:template>
  
  <!-- ====================================================================== -->
  <!-- bibliography -->
  <!-- ====================================================================== -->
  
   <xsl:template match="bl">
    <ul class="biblio">
     <xsl:apply-templates/>
    </ul>
   </xsl:template>
  
   <xsl:template match="bi">
    <li class="biblio">
     <b>
      <xsl:text>[</xsl:text>
       <a href="{@href}"><xsl:value-of select="@name"/></a>
      <xsl:text>]</xsl:text>
     </b>
     <xsl:text> &quot;</xsl:text>
     <xsl:value-of select="@title"/>
     <xsl:text>&quot;, </xsl:text>
     <xsl:value-of select="@authors"/>
     <xsl:if test="@date">
      <xsl:text>, </xsl:text>
      <xsl:value-of select="@date"/>
     </xsl:if>
    </li>
   </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-site/newstyle/stylesheets/todo2document.xsl
  
  Index: todo2document.xsl
  ===================================================================
  <?xml version="1.0"?>
  
  <xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0">
  
   <xsl:import href="copyover.xsl"/>
   
   <xsl:template match="todo">
    <document>
     <header>
      <title><xsl:value-of select="@title"/></title>
     </header>
     <body>
      <xsl:apply-templates/>
     </body>
    </document>
   </xsl:template>
  
   <xsl:template match="actions">
    <s2 title="{@priority}">
     <sl>
      <xsl:for-each select="action">
       <li>
        <strong><xsl:text>[</xsl:text><xsl:value-of select="@context"/><xsl:text>]</xsl:text></strong><xsl:text>
</xsl:text>
        <xsl:apply-templates/>
       </li>
      </xsl:for-each>
     </sl>
    </s2>
   </xsl:template>
   
  </xsl:stylesheet>
  
  
  1.1                  xml-site/sources/newstylecreate.bat
  
  Index: newstylecreate.bat
  ===================================================================
  @echo off
  java org.apache.stylebook.StyleBook "targetDirectory=../targets/%1" %1.xml ../newstyle/
  
  
  
  1.1                  xml-site/sources/newstylecreate1.bat
  
  Index: newstylecreate1.bat
  ===================================================================
  @echo off
  java org.apache.stylebook.StyleBook "loaderConfig=sbk:/newstyle/loader1.xml" "targetDirectory=../targets/%1"
 %1.xml ../newtyle/ 
  
  
  
  1.1                  xml-site/sources/newstylewebsite.bat
  
  Index: newstylewebsite.bat
  ===================================================================
  @echo off
  java org.apache.stylebook.StyleBook "targetDirectory=../targets" website.xml ../newstyle/
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: general-cvs-help@xml.apache.org


Mime
View raw message