kaz 02/02/23 09:50:08
Modified: xdocs/stylesheets site.dvsl
Log:
Updated with the latest and greatest site.vsl.
Revision Changes Path
1.2 +73 -41 jakarta-turbine-maven/xdocs/stylesheets/site.dvsl
Index: site.dvsl
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/xdocs/stylesheets/site.dvsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- site.dvsl 20 Feb 2002 00:52:21 -0000 1.1
+++ site.dvsl 23 Feb 2002 17:50:08 -0000 1.2
@@ -13,23 +13,27 @@
#match( "document" )
- #set( $project = $node.selectSingleNode("document('xdocs/project.xml')/project"
) )
+ #set( $project = $node.selectSingleNode("document('xdocs/project.xml')/project" )
)
- <html>
+ <html>
<head>
<title>$project.title - $node.properties.title</title>
- #foreach( $n in $node.properties.selectNodes("author") )
+ #foreach( $n in $node.properties.selectNodes("author") )
<meta name="author" value="$n"/>
<meta name="email" value="$n.attribute("email")" />
- #end
+ #end
</head>
- <body bgcolor="$body-bg" text="$body-fg" link="$body-link"
- alink="$body-link" vlink="$body-link">
+ <body
+ bgcolor="$body-bg"
+ text="$body-fg"
+ link="$body-link"
+ alink="$body-link"
+ vlink="$body-link">
- <table border="0" width="100%" cellspacing="4">
+ <table border="0" width="100%" cellspacing="4">
## PAGE HEADER
<tr><td colspan="2">
@@ -48,7 +52,11 @@
## PROJECT LOGO
<a href="$home">
+ #if ( $src.startsWith("http") )
<img src="$src" align="right" alt="$alt" border="0"/>
+ #else
+ <img src="${relative-path}$src" align="right" alt="$alt" border="0"/>
+ #end
</a>
#end
@@ -71,6 +79,7 @@
<!-- RIGHT SIDE MAIN BODY -->
<td width="80%" valign="top" align="left">
$context.applyTemplates("body/section")
+ $context.applyTemplates("body/glossary")
</td>
</tr>
@@ -136,7 +145,7 @@
<tr><td><blockquote>
$context.applyTemplates("*")
</blockquote></td></tr>
-
+ <tr><td> </td></tr>
</table>
#end
@@ -153,6 +162,7 @@
<tr><td><blockquote>
$context.applyTemplates("*")
</blockquote></td></tr>
+ <tr><td> </td></tr>
</table>
#end
@@ -162,37 +172,21 @@
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
<tr>
- <td bgcolor="$source-color" width="1" height="1">
- <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0"
border="0"/>
- </td>
- <td bgcolor="$source-color" height="1">
- <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0"
border="0"/>
- </td>
- <td bgcolor="$source-color" width="1" height="1">
- <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0"
border="0"/>
- </td>
+ <td bgcolor="$source-color" width="1" height="1"><img
src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="$source-color" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="$source-color" width="1" height="1"><img
src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
- <td bgcolor="$source-color" width="1">
- <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0"
border="0"/>
- </td>
+ <td bgcolor="$source-color" width="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff" height="1">
<pre>$toolbox.htmlescape.getText( $node.value() )</pre>
</td>
- <td bgcolor="$source-color" width="1">
- <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0"
border="0"/>
- </td>
+ <td bgcolor="$source-color" width="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
<tr>
- <td bgcolor="$source-color" width="1" height="1">
- <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0"
border="0"/>
- </td>
- <td bgcolor="$source-color" height="1">
- <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0"
border="0"/>
- </td>
- <td bgcolor="$source-color" width="1" height="1">
- <img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0"
border="0"/>
- </td>
+ <td bgcolor="$source-color" width="1" height="1"><img
src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="$source-color" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+ <td bgcolor="$source-color" width="1" height="1"><img
src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
</tr>
</table>
</div>
@@ -217,10 +211,20 @@
#set ($colspan = $attrib.colspan)
#set ($rowspan = $attrib.rowspan)
-<td bgcolor="$table-td-bg" colspan="$!colspan" rowspan="$!rowspan" valign="top"
align="left">
- <font color="#000000" size="-1" face="arial,helvetica,sanserif">
- $node.copy( $node.children() )
- </font>
+<td
+ bgcolor="$table-td-bg"
+ colspan="$!colspan"
+ rowspan="$!rowspan"
+ valign="top"
+ align="left">
+
+ <font
+ color="#000000"
+ size="-1"
+ face="arial,helvetica,sanserif">
+
+ $node.copy( $node.children() )
+ </font>
</td>
#end
@@ -229,14 +233,42 @@
#set ($colspan = $attrib.colspan )
#set ($rowspan = $attrib.rowspan )
-<td bgcolor="$table-th-bg" colspan="$!colspan" rowspan="$!rowspan" valign="top"
align="left">
- <font color="#000000" size="-1" face="arial,helvetica,sanserif">
- $node.copy( $node.children())
- </font>
+<td
+ bgcolor="$table-th-bg"
+ colspan="$!colspan"
+ rowspan="$!rowspan"
+ valign="top"
+ align="left">
+
+ <font
+ color="#000000"
+ size="-1"
+ face="arial,helvetica,sanserif">
+
+ $node.copy( $node.children())
+ </font>
</td>
#end
+## -----------------------------------------------------
+## G L O S S A R Y
+## -----------------------------------------------------
+
+#match ( "glossary" )
+ $context.applyTemplates("entries/entry")
+#end
+
+#match ("entry")
+ <b>$context.node.name</b>
+ <br/>
+ $context.node.definition
+ <p/>
+#end
+
+## -----------------------------------------------------
+## D E F A U L T C O P Y
+## -----------------------------------------------------
+
#match("*")
$node.copy()
#end
-
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>