cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/flowspec style.css style.xsl
Date Wed, 05 Mar 2003 04:23:02 GMT
pier        2003/03/04 20:23:01

  Modified:    src/scratchpad/flowspec style.css style.xsl
  Log:
  I use MacOS/X, and sometimes I forget to tell that the line breaks are
  _supposed_ to be UNIX... DOH!
  
  Revision  Changes    Path
  1.2       +87 -1     xml-cocoon2/src/scratchpad/flowspec/style.css
  
  Index: style.css
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/flowspec/style.css,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- style.css	5 Mar 2003 04:02:47 -0000	1.1
  +++ style.css	5 Mar 2003 04:23:01 -0000	1.2
  @@ -1 +1,87 @@
  -table.index {
  background-color: #ccccff;
  border-width: thin;
  border-color: #3333ff;
 border-style: ridge;
}

table.index thead th {
  background-color: #9999ff;
  border-width:
thin;
  border-color: #3333ff;
  border-style: ridge;
  font-size: larger;
}

table.index
thead td {
  background-color: #6666ff;
  border-width: thin;
  border-color: #3333ff;
  border-style:
ridge;
  font-size: smaller;
  font-weight: bold;
  width: 0%;
}

table.index thead td.type
{
  width: 0%;
}

table.index thead td.desc {
  width: 100%;
}

table.index thead td.accs
{
  width: 0%;
}

table.index tbody td {
  background-color: #ffffff;
  border-width: thin;
 border-color: #3333ff;
  border-style: solid;
  vertical-align: top;
}

table.index tbody
td.type {
  width: 0%;
}

table.index tbody td.desc {
  width: 0%;
}

table.index tbody td.type
{
  width: 0%;
}

table.index tbody td.read-only {
  background-color: #ff9999;
  text-align:
center;
  vertical-align: middle;
}

table.index tbody td.write-only {
  background-color:
#99ff99;
  text-align: center;
  vertical-align: middle;
}

table.index tbody td.read-write
{
  background-color: #ffff99;
  text-align: center;
  vertical-align: middle;
}

table.index
div.type {
  text-align: right;
  font-family: monospace;
}

table.index div.name {
  font-family:
monospace;
}

table.index div.desc {
  margin-left: 25px;
}
  \ No newline at end of file
  +table.index {
  +  background-color: #ccccff;
  +  border-width: thin;
  +  border-color: #3333ff;
  +  border-style: ridge;
  +}
  +
  +table.index thead th {
  +  background-color: #9999ff;
  +  border-width: thin;
  +  border-color: #3333ff;
  +  border-style: ridge;
  +  font-size: larger;
  +}
  +
  +table.index thead td {
  +  background-color: #6666ff;
  +  border-width: thin;
  +  border-color: #3333ff;
  +  border-style: ridge;
  +  font-size: smaller;
  +  font-weight: bold;
  +  width: 0%;
  +}
  +
  +table.index thead td.type {
  +  width: 0%;
  +}
  +
  +table.index thead td.desc {
  +  width: 100%;
  +}
  +
  +table.index thead td.accs {
  +  width: 0%;
  +}
  +
  +table.index tbody td {
  +  background-color: #ffffff;
  +  border-width: thin;
  +  border-color: #3333ff;
  +  border-style: solid;
  +  vertical-align: top;
  +}
  +
  +table.index tbody td.type {
  +  width: 0%;
  +}
  +
  +table.index tbody td.desc {
  +  width: 0%;
  +}
  +
  +table.index tbody td.type {
  +  width: 0%;
  +}
  +
  +table.index tbody td.read-only {
  +  background-color: #ff9999;
  +  text-align: center;
  +  vertical-align: middle;
  +}
  +
  +table.index tbody td.write-only {
  +  background-color: #99ff99;
  +  text-align: center;
  +  vertical-align: middle;
  +}
  +
  +table.index tbody td.read-write {
  +  background-color: #ffff99;
  +  text-align: center;
  +  vertical-align: middle;
  +}
  +
  +table.index div.type {
  +  text-align: right;
  +  font-family: monospace;
  +}
  +
  +table.index div.name {
  +  font-family: monospace;
  +}
  +
  +table.index div.desc {
  +  margin-left: 25px;
  +}
  
  
  
  1.2       +129 -1    xml-cocoon2/src/scratchpad/flowspec/style.xsl
  
  Index: style.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/flowspec/style.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- style.xsl	5 Mar 2003 04:02:47 -0000	1.1
  +++ style.xsl	5 Mar 2003 04:23:01 -0000	1.2
  @@ -1 +1,129 @@
  -<?xml version="1.0" encoding="iso-8859-1"?>

<?xml-stylesheet href="style.xsl"
type="text/xsl"?>

<xsl:stylesheet version="1.0"
                xmlns="http://www.w3.org/1999/xhtml"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:output method="html"
             doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
              doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>

 <xsl:template match="/">
    <html>
      <xsl:apply-templates/>
    </html>
 </xsl:template>

  <xsl:template match="interface">
    <head>
      <title>Flow
Layer: Interface "<xsl:value-of select="@name"/>" definition.</title>
      <link
href="style.css" rel="stylesheet" text="text/css"/>
    </head>
    <body>
     <h1><em><xsl:value-of select="@name"/></em> interface</h1>

     <p>
        <table width="100%" class="index">
          <thead>
 
          <tr><th colspan="3">Attributes</th></tr>
            <tr>
             <td class="type">Type</td>
              <td class="desc">Name
/ Description</td>
              <td class="accs">Acc.</td>
           
</tr>
          </thead>
          <xsl:apply-templates select="attribute">
           <xsl:sort select="@name"/>
          </xsl:apply-templates>
      
 </table>
      </p>

      <p>
        <table width="100%" class="index">
         <thead>
            <tr><th colspan="3">Functions</th></tr>
           <tr>
              <td class="type">Type</td>
              <td
class="desc">Name / Description</td>
            </tr>
          </thead>
         <xsl:apply-templates select="function">
            <xsl:sort select="@name"/>
         </xsl:apply-templates>
        </table>
      </p>

    </body>
 </xsl:template>

  <xsl:template match="attribute">
    <tbody>
      <tr>
       <td><div class="type"><a href="./{@type}.xml"><xsl:value-of select="@type"/></a></div></td>
       <td>
          <div class="name"><a href="#func_{@name}"><xsl:value-of
select="@name"/></a></div>
          <div class="desc">
            <xsl:apply-templates
select="child::p[position()=1]" mode="index"/>
          </div>
        </td>
       <td class="{@access}">
          <xsl:choose>
            <xsl:when
test="@access='read-only'">R</xsl:when>
            <xsl:when test="@access='write-only'">W</xsl:when>
           <xsl:otherwise>RW</xsl:otherwise>
          </xsl:choose>
  
     </td>
      </tr>
    </tbody>
  </xsl:template>

  <xsl:template
match="function">
    <tbody>
      <tr>
        <td>
          <div
class="type">
            <xsl:choose>
              <xsl:when test="@type!=''">
               <a href="./{@type}.xml"><xsl:value-of select="@type"/></a>
             </xsl:when>
              <xsl:otherwise>void</xsl:otherwise>
           </xsl:choose>
          </div>
        </td>
        <td>
         <div class="name">
            <a href="#attr_{@name}"><xsl:value-of
select="@name"/></a>
            <xsl:text> (</xsl:text>
           
  <xsl:apply-templates select="argument" mode="index"/>
            <xsl:text>)</xsl:text>
           <xsl:if test="@raise != ''">
              <br/>raise <a href="./{@raise}.xml"><xsl:value-of
select="@raise"/></a>
            </xsl:if>
          </div>

      
   <div class="desc">
            <xsl:apply-templates select="child::p[position()=1]"
mode="index"/>
          </div>
        </td>
      </tr>
    </tbody>
 </xsl:template>

  <xsl:template match="p" mode="index">
    <xsl:apply-templates/>
 </xsl:template>

  <xsl:template match="argument" mode="index">
    <xsl:if
test="position() > 1"><xsl:text>, </xsl:text></xsl:if>
    <a href="./{@type}.xml"><xsl:value-of
select="@type"/></a>
    <xsl:text> </xsl:text>
    <xsl:value-of
select="@name"/>
  </xsl:template>

  <xsl:template match="ref">
    <a
href="./{@type}.xml"><xsl:apply-templates/></a>
  </xsl:template>

</xsl:stylesheet>
  \ No newline at end of file
  +<?xml version="1.0" encoding="iso-8859-1"?>
  +
  +<?xml-stylesheet href="style.xsl" type="text/xsl"?>
  +
  +<xsl:stylesheet version="1.0"
  +                xmlns="http://www.w3.org/1999/xhtml"
  +                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  +
  +  <xsl:output method="html"
  +              doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
  +              doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
  +
  +  <xsl:template match="/">
  +    <html>
  +      <xsl:apply-templates/>
  +    </html>
  +  </xsl:template>
  +
  +  <xsl:template match="interface">
  +    <head>
  +      <title>Flow Layer: Interface "<xsl:value-of select="@name"/>" definition.</title>
  +      <link href="style.css" rel="stylesheet" text="text/css"/>
  +    </head>
  +    <body>
  +      <h1><em><xsl:value-of select="@name"/></em> interface</h1>
  +
  +      <p>
  +        <table width="100%" class="index">
  +          <thead>
  +            <tr><th colspan="3">Attributes</th></tr>
  +            <tr>
  +              <td class="type">Type</td>
  +              <td class="desc">Name / Description</td>
  +              <td class="accs">Acc.</td>
  +            </tr>
  +          </thead>
  +          <xsl:apply-templates select="attribute">
  +            <xsl:sort select="@name"/>
  +          </xsl:apply-templates>
  +        </table>
  +      </p>
  +
  +      <p>
  +        <table width="100%" class="index">
  +          <thead>
  +            <tr><th colspan="3">Functions</th></tr>
  +            <tr>
  +              <td class="type">Type</td>
  +              <td class="desc">Name / Description</td>
  +            </tr>
  +          </thead>
  +          <xsl:apply-templates select="function">
  +            <xsl:sort select="@name"/>
  +          </xsl:apply-templates>
  +        </table>
  +      </p>
  +
  +    </body>
  +  </xsl:template>
  +
  +  <xsl:template match="attribute">
  +    <tbody>
  +      <tr>
  +        <td><div class="type"><a href="./{@type}.xml"><xsl:value-of
select="@type"/></a></div></td>
  +        <td>
  +          <div class="name"><a href="#func_{@name}"><xsl:value-of select="@name"/></a></div>
  +          <div class="desc">
  +            <xsl:apply-templates select="child::p[position()=1]" mode="index"/>
  +          </div>
  +        </td>
  +        <td class="{@access}">
  +          <xsl:choose>
  +            <xsl:when test="@access='read-only'">R</xsl:when>
  +            <xsl:when test="@access='write-only'">W</xsl:when>
  +            <xsl:otherwise>RW</xsl:otherwise>
  +          </xsl:choose>
  +        </td>
  +      </tr>
  +    </tbody>
  +  </xsl:template>
  +
  +  <xsl:template match="function">
  +    <tbody>
  +      <tr>
  +        <td>
  +          <div class="type">
  +            <xsl:choose>
  +              <xsl:when test="@type!=''">
  +                <a href="./{@type}.xml"><xsl:value-of select="@type"/></a>
  +              </xsl:when>
  +              <xsl:otherwise>void</xsl:otherwise>
  +            </xsl:choose>
  +          </div>
  +        </td>
  +        <td>
  +          <div class="name">
  +            <a href="#attr_{@name}"><xsl:value-of select="@name"/></a>
  +            <xsl:text> (</xsl:text>
  +              <xsl:apply-templates select="argument" mode="index"/>
  +            <xsl:text>)</xsl:text>
  +            <xsl:if test="@raise != ''">
  +              <br/>raise <a href="./{@raise}.xml"><xsl:value-of select="@raise"/></a>
  +            </xsl:if>
  +          </div>
  +
  +          <div class="desc">
  +            <xsl:apply-templates select="child::p[position()=1]" mode="index"/>
  +          </div>
  +        </td>
  +      </tr>
  +    </tbody>
  +  </xsl:template>
  +
  +  <xsl:template match="p" mode="index">
  +    <xsl:apply-templates/>
  +  </xsl:template>
  +
  +  <xsl:template match="argument" mode="index">
  +    <xsl:if test="position() > 1"><xsl:text>, </xsl:text></xsl:if>
  +    <a href="./{@type}.xml"><xsl:value-of select="@type"/></a>
  +    <xsl:text> </xsl:text>
  +    <xsl:value-of select="@name"/>
  +  </xsl:template>
  +
  +  <xsl:template match="ref">
  +    <a href="./{@type}.xml"><xsl:apply-templates/></a>
  +  </xsl:template>
  +
  +</xsl:stylesheet>
  
  
  

Mime
View raw message