jon 01/03/20 15:01:11
Modified: docs anakia.html code-standards.html contributors.html
design.html developer-guide.html differences.html
getting-started.html index.html install.html
license.html migration.html specification-ast.html
specification-bnf.html specification.html
texen.html todo.html user-guide.html
vtl-reference-guide.html
docs/ymtd ymtd-changes.html ymtd-conclusion.html
ymtd-embedded.html ymtd-error-handling.html
ymtd-generation.html ymtd-hosting.html
ymtd-implementation.html ymtd-javabeans.html
ymtd-sampleapp.html ymtd-saying-hello.html
ymtd-taglibs.html ymtd.html
src/java/org/apache/velocity/runtime/resource/loader
ClasspathResourceLoader.java
xdocs user-guide.xml
Log:
rebuilt documentation based on new site.vsl which added <a name="">
to the <sections>
updated user-guide.xml to take advantage of new feature
Revision Changes Path
1.15 +5 -5 jakarta-velocity/docs/anakia.html
Index: anakia.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/anakia.html,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- anakia.html 2001/03/15 07:10:46 1.14
+++ anakia.html 2001/03/20 23:00:38 1.15
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>What Is Anakia?</strong>
+ <a name="What Is Anakia?"><strong>What Is Anakia?</strong></a>
</font>
</td></tr>
<tr><td>
@@ -157,7 +157,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Installation/Example</strong>
+ <a name="Installation/Example"><strong>Installation/Example</strong></a>
</font>
</td></tr>
<tr><td>
@@ -188,7 +188,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>How does it work?</strong>
+ <a name="How does it work?"><strong>How does it work?</strong></a>
</font>
</td></tr>
<tr><td>
@@ -431,7 +431,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Context Objects</strong>
+ <a name="Context Objects"><strong>Context Objects</strong></a>
</font>
</td></tr>
<tr><td>
@@ -612,7 +612,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Credits</strong>
+ <a name="Credits"><strong>Credits</strong></a>
</font>
</td></tr>
<tr><td>
1.20 +1 -1 jakarta-velocity/docs/code-standards.html
Index: code-standards.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/code-standards.html,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- code-standards.html 2001/03/15 07:10:46 1.19
+++ code-standards.html 2001/03/20 23:00:39 1.20
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Coding Standards</strong>
+ <a name="Coding Standards"><strong>Coding Standards</strong></a>
</font>
</td></tr>
<tr><td>
1.24 +1 -1 jakarta-velocity/docs/contributors.html
Index: contributors.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/contributors.html,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- contributors.html 2001/03/15 07:10:46 1.23
+++ contributors.html 2001/03/20 23:00:39 1.24
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Contributors</strong>
+ <a name="Contributors"><strong>Contributors</strong></a>
</font>
</td></tr>
<tr><td>
1.21 +1 -1 jakarta-velocity/docs/design.html
Index: design.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/design.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- design.html 2001/03/15 07:10:46 1.20
+++ design.html 2001/03/20 23:00:39 1.21
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Design</strong>
+ <a name="Design"><strong>Design</strong></a>
</font>
</td></tr>
<tr><td>
1.42 +10 -10 jakarta-velocity/docs/developer-guide.html
Index: developer-guide.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/developer-guide.html,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- developer-guide.html 2001/03/19 18:21:48 1.41
+++ developer-guide.html 2001/03/20 23:00:40 1.42
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Contents</strong>
+ <a name="Contents"><strong>Contents</strong></a>
</font>
</td></tr>
<tr><td>
@@ -168,7 +168,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Introduction</strong>
+ <a name="Introduction"><strong>Introduction</strong></a>
</font>
</td></tr>
<tr><td>
@@ -298,7 +298,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Resources</strong>
+ <a name="Resources"><strong>Resources</strong></a>
</font>
</td></tr>
<tr><td>
@@ -371,7 +371,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>How Velocity Works</strong>
+ <a name="How Velocity Works"><strong>How Velocity Works</strong></a>
</font>
</td></tr>
<tr><td>
@@ -461,7 +461,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>The Context</strong>
+ <a name="The Context"><strong>The Context</strong></a>
</font>
</td></tr>
<tr><td>
@@ -726,7 +726,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Using Velocity In Servlets</strong>
+ <a name="Using Velocity In Servlets"><strong>Using Velocity In
Servlets</strong></a>
</font>
</td></tr>
<tr><td>
@@ -928,7 +928,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Using Velocity In General Applications</strong>
+ <a name="Using Velocity In General Applications"><strong>Using Velocity
In General Applications</strong></a>
</font>
</td></tr>
<tr><td>
@@ -1310,7 +1310,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Velocity Configuration Keys and Values</strong>
+ <a name="Velocity Configuration Keys and Values"><strong>Velocity
Configuration Keys and Values</strong></a>
</font>
</td></tr>
<tr><td>
@@ -1553,7 +1553,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Configuring the Log System</strong>
+ <a name="Configuring the Log System"><strong>Configuring the Log
System</strong></a>
</font>
</td></tr>
<tr><td>
@@ -1612,7 +1612,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Summary</strong>
+ <a name="Summary"><strong>Summary</strong></a>
</font>
</td></tr>
<tr><td>
1.9 +1 -1 jakarta-velocity/docs/differences.html
Index: differences.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/differences.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- differences.html 2001/03/15 07:10:47 1.8
+++ differences.html 2001/03/20 23:00:42 1.9
@@ -101,7 +101,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Differences: Velocity vs. WebMacro</strong>
+ <a name="Differences: Velocity vs. WebMacro"><strong>Differences:
Velocity vs. WebMacro</strong></a>
</font>
</td></tr>
<tr><td>
1.23 +2 -2 jakarta-velocity/docs/getting-started.html
Index: getting-started.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/getting-started.html,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- getting-started.html 2001/03/19 02:52:24 1.22
+++ getting-started.html 2001/03/20 23:00:43 1.23
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Getting Started</strong>
+ <a name="Getting Started"><strong>Getting Started</strong></a>
</font>
</td></tr>
<tr><td>
@@ -119,7 +119,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>View Detailed API Documentation</strong>
+ <a name="View Detailed API Documentation"><strong>View Detailed API
Documentation</strong></a>
</font>
</td></tr>
<tr><td>
1.22 +4 -4 jakarta-velocity/docs/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/index.html,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- index.html 2001/03/15 07:10:47 1.21
+++ index.html 2001/03/20 23:00:43 1.22
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>What is Velocity?</strong>
+ <a name="What is Velocity?"><strong>What is Velocity?</strong></a>
</font>
</td></tr>
<tr><td>
@@ -133,7 +133,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Where do I get releases?</strong>
+ <a name="Where do I get releases?"><strong>Where do I get
releases?</strong></a>
</font>
</td></tr>
<tr><td>
@@ -148,7 +148,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Where do I get nightly builds?</strong>
+ <a name="Where do I get nightly builds?"><strong>Where do I get nightly
builds?</strong></a>
</font>
</td></tr>
<tr><td>
@@ -163,7 +163,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>How do I contribute, give feedback, fix bugs and so on?</strong>
+ <a name="How do I contribute, give feedback, fix bugs and so
on?"><strong>How do I contribute, give feedback, fix bugs and so on?</strong></a>
</font>
</td></tr>
<tr><td>
1.24 +3 -3 jakarta-velocity/docs/install.html
Index: install.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/install.html,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- install.html 2001/03/19 02:52:24 1.23
+++ install.html 2001/03/20 23:00:44 1.24
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Installation</strong>
+ <a name="Installation"><strong>Installation</strong></a>
</font>
</td></tr>
<tr><td>
@@ -154,7 +154,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Building</strong>
+ <a name="Building"><strong>Building</strong></a>
</font>
</td></tr>
<tr><td>
@@ -253,7 +253,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Testing Your Installation</strong>
+ <a name="Testing Your Installation"><strong>Testing Your
Installation</strong></a>
</font>
</td></tr>
<tr><td>
1.22 +8 -7 jakarta-velocity/docs/license.html
Index: license.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/license.html,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- license.html 2001/03/20 19:28:34 1.21
+++ license.html 2001/03/20 23:00:45 1.22
@@ -11,10 +11,11 @@
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
- <meta name="author"
value="Turbine Documentation Team">
- <meta name="email" value="[EMAIL PROTECTED]">
+ <meta name="author" value="
+ Turbine Documentation Team">
+ <meta name="email" value="[EMAIL PROTECTED]">
- <title>Velocity - Apache License</title>
+ <title>Velocity - Apache Software License</title>
</head>
<body bgcolor="#ffffff" text="#000000" link="#525D76">
@@ -99,7 +100,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Apache License</strong>
+ <a name="Apache Software License"><strong>Apache Software
License</strong></a>
</font>
</td></tr>
<tr><td>
@@ -115,9 +116,9 @@
<td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
<td bgcolor="#ffffff"><pre>
/*
- * $Header: /home/cvs/jakarta-velocity/docs/license.html,v 1.21 2001/03/20 19:28:34
geirm Exp $
- * $Revision: 1.21 $
- * $Date: 2001/03/20 19:28:34 $
+ * $Header: /home/cvs/jakarta-velocity/docs/license.html,v 1.22 2001/03/20 23:00:45
jon Exp $
+ * $Revision: 1.22 $
+ * $Date: 2001/03/20 23:00:45 $
*
* ====================================================================
*
1.18 +2 -2 jakarta-velocity/docs/migration.html
Index: migration.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/migration.html,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- migration.html 2001/03/20 18:37:49 1.17
+++ migration.html 2001/03/20 23:00:45 1.18
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Converting Templates</strong>
+ <a name="Converting Templates"><strong>Converting Templates</strong></a>
</font>
</td></tr>
<tr><td>
@@ -121,7 +121,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>WebMacro to Velocity Template Converter</strong>
+ <a name="WebMacro to Velocity Template Converter"><strong>WebMacro to
Velocity Template Converter</strong></a>
</font>
</td></tr>
<tr><td>
1.3 +1 -1 jakarta-velocity/docs/specification-ast.html
Index: specification-ast.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/specification-ast.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- specification-ast.html 2001/03/15 07:10:48 1.2
+++ specification-ast.html 2001/03/20 23:00:46 1.3
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Velocity Specification - AST</strong>
+ <a name="Velocity Specification - AST"><strong>Velocity Specification -
AST</strong></a>
</font>
</td></tr>
<tr><td>
1.3 +1 -1 jakarta-velocity/docs/specification-bnf.html
Index: specification-bnf.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/specification-bnf.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- specification-bnf.html 2001/03/15 07:10:48 1.2
+++ specification-bnf.html 2001/03/20 23:00:46 1.3
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Velocity Specification - BNF</strong>
+ <a name="Velocity Specification - BNF"><strong>Velocity Specification -
BNF</strong></a>
</font>
</td></tr>
<tr><td>
1.3 +1 -1 jakarta-velocity/docs/specification.html
Index: specification.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/specification.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- specification.html 2001/03/15 07:10:48 1.2
+++ specification.html 2001/03/20 23:00:47 1.3
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Velocity Specification</strong>
+ <a name="Velocity Specification"><strong>Velocity
Specification</strong></a>
</font>
</td></tr>
<tr><td>
1.14 +2 -2 jakarta-velocity/docs/texen.html
Index: texen.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/texen.html,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- texen.html 2001/03/19 02:52:24 1.13
+++ texen.html 2001/03/20 23:00:47 1.14
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>What is Texen?</strong>
+ <a name="What is Texen?"><strong>What is Texen?</strong></a>
</font>
</td></tr>
<tr><td>
@@ -128,7 +128,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>The TexenTask</strong>
+ <a name="The TexenTask"><strong>The TexenTask</strong></a>
</font>
</td></tr>
<tr><td>
1.21 +2 -2 jakarta-velocity/docs/todo.html
Index: todo.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/todo.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- todo.html 2001/03/19 08:54:05 1.20
+++ todo.html 2001/03/20 23:00:47 1.21
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Todo</strong>
+ <a name="Todo"><strong>Todo</strong></a>
</font>
</td></tr>
<tr><td>
@@ -118,7 +118,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>The List</strong>
+ <a name="The List"><strong>The List</strong></a>
</font>
</td></tr>
<tr><td>
1.29 +112 -137 jakarta-velocity/docs/user-guide.html
Index: user-guide.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/user-guide.html,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- user-guide.html 2001/03/20 06:10:04 1.28
+++ user-guide.html 2001/03/20 23:00:48 1.29
@@ -101,73 +101,73 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Table of Contents</strong>
+ <a name="Table of Contents"><strong>Table of Contents</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <p>
-<ol>
-<li><a href="#about">About this guide</a></li>
-<li><a href="#what">What is Velocity</a></li>
-<li><a href="#can">What can Velocity do for me?</a></li>
- <ul>
- <li><a href="#mudstore">The Mud Store example</a></li>
- </ul>
-<li><a href="#intro">Velocity Template Language (VTL): An Introduction</a></li>
-<li><a href="#helloworld">Hello Velocity World!</a></li>
-<li><a href="#comments">Comments</a></li>
-<li><a href="#references">References</a></li>
- <ul>
- <li><a href="#variables">Variables</a></li>
- <li><a href="#properties">Properties</a></li>
- <li><a href="#methods">Methods</a></li>
- </ul>
-<li><a href="#formal_notation">Formal Reference Notation</a></li>
-<li><a href="#quiet_notation">Quiet Reference Notation</a></li>
-<li><a href="#literal">Getting literal</a></li>
- <ul>
- <li><a href="#currency">Currency</a></li>
- <li><a href="#escaping">Escaping Valid VTL References</a></li>
- </ul>
-<li><a href="#case">Case Substitution</a></li>
-<li><a href="#directives">Directives</a></li>
- <ul>
- <li><a href="#set">Set</a></li>
- <li><a href="#ifelse">If-Else Statements</a></li>
- <ul>
- <li><a href="#relational_ops">Relational and Logical Operators</a></li>
- </ul>
- <li><a href="#foreach">Foreach Loops</a></li>
- <li><a href="#include">Include</a></li>
- <li><a href="#parse">Parse</a></li>
- <li><a href="#stop">Stop</a></li>
- <li><a href="#velocimacros">Velocimacros</a></li>
- </ul>
-<li><a href="#escaping_vtl">Escaping VTL Directives</a></li>
-<li><a href="#formatting">VTL: Formatting Issues</a></li>
-<li><a href="#other">Other Features</a></li>
- <ul>
- <li><a href="#math">Math</a></li>
- <li><a href="#range">Range Operator</a></li>
- <li><a href="#escaping_advanced">Advanced Issues: Escaping and !</a></li>
- </ul>
-<li><a href="#feedback">Feedback</a></li>
+ <ol>
+<li><a href="#About this Guide">About this Guide</a></li>
+<li><a href="#What is Velocity?">What is Velocity?</a></li>
+<li><a href="#What can Velocity do for me?">What can Velocity do for me?</a></li>
+ <ol>
+ <li><a href="#The Mud Store Example">The Mud Store example</a></li>
+ </ol>
+<li><a href="#Velocity Template Language (VTL): An Introduction">Velocity Template
Language (VTL): An Introduction</a></li>
+<li><a href="#Hello Velocity World!">Hello Velocity World!</a></li>
+<li><a href="#Comments">Comments</a></li>
+<li><a href="#References">References</a></li>
+ <ol>
+ <li><a href="#Variables">Variables</a></li>
+ <li><a href="#Properties">Properties</a></li>
+ <li><a href="#Methods">Methods</a></li>
+ </ol>
+<li><a href="#Formal Reference Notation">Formal Reference Notation</a></li>
+<li><a href="#Quiet Reference Notation">Quiet Reference Notation</a></li>
+<li><a href="#Getting literal">Getting literal</a></li>
+ <ol>
+ <li><a href="#Currency">Currency</a></li>
+ <li><a href="#Escaping Valid VTL References">Escaping Valid VTL
References</a></li>
+ </ol>
+<li><a href="#Case Substitution">Case Substitution</a></li>
+<li><a href="#Directives">Directives</a></li>
+ <ol>
+ <li><a href="#Set">Set</a></li>
+ <li><a href="#String Literals">Set</a></li>
+ <li><a href="#Conditionals">If-Else Statements</a></li>
+ <ol>
+ <li><a href="#Relational and Logical Operators">Relational and Logical
+ Operators</a></li>
+ </ol>
+ <li><a href="#Loops">Foreach Loops</a></li>
+ <li><a href="#Include">Include</a></li>
+ <li><a href="#Parse">Parse</a></li>
+ <li><a href="#Stop">Stop</a></li>
+ <li><a href="#Velocimacros">Velocimacros</a></li>
+ </ol>
+<li><a href="#Escaping VTL Directives">Escaping VTL Directives</a></li>
+<li><a href="#VTL: Formatting Issues">VTL: Formatting Issues</a></li>
+<li><a href="#Other Features">Other Features</a></li>
+ <ol>
+ <li><a href="#Math">Math</a></li>
+ <li><a href="#Range Operator">Range Operator</a></li>
+ <li><a href="#Advanced Issues: Escaping and !">Advanced Issues: Escaping and
+ !</a></li>
+ </ol>
+<li><a href="#Feedback">Feedback</a></li>
</ol>
-</p>
</blockquote>
</td></tr>
</table>
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>About this Guide</strong>
+ <a name="About this Guide"><strong>About this Guide</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="about" />
- <p>
+ <p>
The Velocity User Guide is intended to help page designers and
content providers get acquainted with Velocity and the syntax of its
simple yet powerful scripting language, the Velocity Template
@@ -184,13 +184,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>What is Velocity?</strong>
+ <a name="What is Velocity?"><strong>What is Velocity?</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="what" />
- <p>
+ <p>
Velocity is a Java-based template engine. It permits web page
designers to reference methods defined in Java code. Web designers
can work in parallel with Java programmers to develop web sites
@@ -218,22 +217,20 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>What can Velocity do for me?</strong>
+ <a name="What can Velocity do for me?"><strong>What can Velocity do for
me?</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="can" />
- <table border="0"
cellspacing="0" cellpadding="2" width="100%">
+ <table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>The Mud Store Example</strong>
+ <a name="The Mud Store Example"><strong>The Mud Store Example</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="mudstore" />
- <p>
+ <p>
Suppose you are a page designer for an online store that specializes
in selling mud. Let's call it "The Online Mud Store". Business is
thriving. Customers place orders for various types and quantities of
@@ -329,13 +326,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Velocity Template Language (VTL): An Introduction</strong>
+ <a name="Velocity Template Language (VTL): An
Introduction"><strong>Velocity Template Language (VTL): An Introduction</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="intro" />
- <p>
+ <p>
The Velocity Template Language (VTL) is meant to provide the
easiest, simplest, and cleanest way to incorporate dynamic content
in a web page. Even a web page developer with little or no
@@ -411,13 +407,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Hello Velocity World!</strong>
+ <a name="Hello Velocity World!"><strong>Hello Velocity World!</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="helloworld" />
- <p>
+ <p>
Once a value has been assigned to a variable, you can reference the
variable anywhere in your HTML document. In the following example, a
value is assigned to <em>$foo</em> and later referenced.
@@ -463,13 +458,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Comments</strong>
+ <a name="Comments"><strong>Comments</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="comments" />
- <p>
+ <p>
Comments allows descriptive text to be included that is not placed
into the output of the template engine. Comments are a useful way of
reminding yourself and explaining to others what your VTL statements
@@ -604,13 +598,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>References</strong>
+ <a name="References"><strong>References</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="references" />
- <p>
+ <p>
There are three types of references in the VTL: variables,
properties and methods. As a designer using the VTL, you and your
engineers must come to an agreement on the specific names of
@@ -623,7 +616,7 @@
<code>.toString()</code> method to resolve the object into a String.
</p>
<p>
-<a name="variables" /><strong>Variables</strong>
+ <a name="Variables"><strong>Variables</strong></a>
<br />
The shorthand notation of a variable consists of a leading "$"
character followed by a VTL <em>Identifier</em>. A VTL Identifier
@@ -700,7 +693,7 @@
follow this directive.
</p>
<p>
-<a name="properties" /><strong>Properties</strong>
+ <a name="Properties"><strong>Properties</strong></a>
<br />
The second flavor of VTL references are properties, and properties
have a distinctive format. The shorthand notation consists of a
@@ -742,7 +735,7 @@
possibilities makes sense, and then return the appropriate value.
</p>
<p>
-<a name="methods" /><strong>Methods</strong>
+ <a name="Methods"><strong>Methods</strong></a>
<br />
A method is defined in the Java code and is capable of doing
something useful, like running a calculation or arriving at a
@@ -852,7 +845,7 @@
</table>
</div>
<p>
-<a name="formal_notation" /><strong>Formal Reference Notation</strong>
+ <a name="Formal Reference Notation"><strong>Formal Reference
Notation</strong></a>
<br />
Shorthand notation for references was used for the examples listed
above, but there is also a formal notation for references, which is
@@ -949,7 +942,7 @@
directly adjacent to text in a template.
</p>
<p>
-<a name="quiet_notation" /><strong>Quiet Reference Notation</strong>
+ <a name="Quiet Reference Notation"><strong>Quiet Reference Notation</strong></a>
<br />
When Velocity encounters an undefined reference, its normal behavior
is to output the image of the reference. For example, suppose the
@@ -1040,20 +1033,19 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Getting literal</strong>
+ <a name="Getting literal"><strong>Getting literal</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="literal" />
- <p>
+ <p>
VTL uses special characters, such as <em>$</em> and <em>#</em>, to
do its work, so some added care should be taken where using these
characters in your templates. This section deals with escaping the
<em>$</em> character.
</p>
<p>
-<a name="currency" /><strong>Currency</strong>
+ <a name="Currency"><strong>Currency</strong></a>
<br />
There is no problem writing "I bought a 4 lb. sack of potatoes at
the farmer's market for only $2.50!" As mentioned, a VTL identifier
@@ -1061,7 +1053,7 @@
be mistaken for a reference.
</p>
<p>
-<a name="escaping" /><strong>Escaping Valid VTL References</strong>
+ <a name="Escaping Valid VTL References"><strong>Escaping Valid VTL
References</strong></a>
<br />
Cases may arise where there is the potential for Velocity to get
confused. <em>Escaping</em> special characters is the best way to
@@ -1254,13 +1246,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Case Substitution</strong>
+ <a name="Case Substitution"><strong>Case Substitution</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="case" />
- <p>
+ <p>
Now that you are familiar with references, you can begin to apply
them effectively in your templates. Velocity references take
advantage of some Java principles that template designers will find
@@ -1324,21 +1315,19 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Directives</strong>
+ <a name="Directives"><strong>Directives</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="directives" />
- <p>
+ <p>
References allow template designers to generate dynamic content for
web sites, while <em>directives</em> -- easy to use script elements
that can be used to creatively manipulate the output of Java code --
permit web designers to truly take charge of the appearance and
content of the web site.
</p>
- <a name="set" />
- <strong>#set</strong>
+ <a
name="Set"><strong>#set</strong></a>
<p>
The <em>#set</em> directive is used for setting the value of a
reference. A value can be assigned to either a variable reference or
@@ -1443,8 +1432,7 @@
left bracket marks the beginning and the right bracket marks the end
of an assignment.
</p>
- <a name="string_literals" />
- <strong>String Literals</strong>
+ <a name="String
Literals"><strong>String Literals</strong></a>
<p>
When using the <em>#set</em> directive, string literals that are
enclosed in double quote characters will be parsed and rendered, as
@@ -1560,14 +1548,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Conditionals</strong>
+ <a name="Conditionals"><strong>Conditionals</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="conditionals" />
- <a name="ifelse" />
- <strong>If / ElseIf / Else</strong>
+ <strong>If / ElseIf / Else</strong>
<p>
The <em>#if</em> directive in Velocity allows for text to be
included when the web page is generated, on the conditional that
@@ -1653,7 +1639,7 @@
<strong>Go West</strong>.
</p>
<p>
-<a name="relational_ops" /><strong>Relational and Logical Operators</strong>
+ <a name="Relational and Logical Operators"><strong>Relational and Logical
Operators</strong></a>
</p>
<p>
Velocity uses the equivalent operator to determine the relationships between
variables.
@@ -1771,14 +1757,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Loops</strong>
+ <a name="Loops"><strong>Loops</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="loops" />
- <strong>Foreach Loop</strong>
- <a name="foreach" />
+ <strong>Foreach Loop</strong>
<p>
The <em>#foreach</em> element allows for looping. For example:
</p>
@@ -1827,13 +1811,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Include</strong>
+ <a name="Include"><strong>Include</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="include" />
- <p>
+ <p>
The <em>#include</em> script element allows the template designer to
import a local file, which is then inserted into the location where
the <em>#include</em> directive is defined. The contents of the file
@@ -1921,13 +1904,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Parse</strong>
+ <a name="Parse"><strong>Parse</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="parse" />
- <p>
+ <p>
The <em>#parse</em> script element allows the template designer to
import a local file that contains VTL. Velocity will parse the VTL
and render the template specified.
@@ -2039,13 +2021,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Stop</strong>
+ <a name="Stop"><strong>Stop</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="stop" />
- <p>
+ <p>
The <em>#stop</em> script element allows the template designer to
stop the execution of the template engine and return. This is useful
for debugging purposes.
@@ -2077,13 +2058,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Velocimacros</strong>
+ <a name="Velocimacros"><strong>Velocimacros</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="velocimacros" />
- <p>
+ <p>
The <em>#macro</em> script element allows template designers to
define a repeated segment of a VTL template. Velocimacros are very
useful in a wide range of scenarios both simple and complex. This
@@ -2355,13 +2335,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Escaping VTL Directives</strong>
+ <a name="Escaping VTL Directives"><strong>Escaping VTL
Directives</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="escaping_vtl" />
- <p>
+ <p>
VTL directives can be escaped with the backslash character ("\") in
a manner similar to valid VTL references.
</p>
@@ -2516,13 +2495,12 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>VTL: Formatting Issues</strong>
+ <a name="VTL: Formatting Issues"><strong>VTL: Formatting
Issues</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="formatting" />
- <p>
+ <p>
Although VTL in this user guide is often displayed with newlines and
whitespaces, the VTL shown below
</p>
@@ -2642,22 +2620,20 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Other Features</strong>
+ <a name="Other Features"><strong>Other Features</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="other" />
- <table border="0"
cellspacing="0" cellpadding="2" width="100%">
+ <table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Math</strong>
+ <a name="Math"><strong>Math</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="math" />
- <p>
+ <p>
Velocity has a handful of built-in mathematical functions that can
be used in templates with the <em>set</em> directive. The following
equations are examples of addition, subtraction, multiplication and
@@ -2808,13 +2784,12 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Range Operator</strong>
+ <a name="Range Operator"><strong>Range Operator</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="range" />
- <p>
+ <p>
The range operator can be used in conjunction with <em>#set</em> and
<em>#foreach</em> statements. Useful for its ability to produce an
object array containing integers, the range operator has the
@@ -2935,13 +2910,12 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Advanced Issues: Escaping and !</strong>
+ <a name="Advanced Issues: Escaping and !"><strong>Advanced Issues:
Escaping and !</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="escaping_advanced" />
- <p>
+ <p>
When a reference is silenced with the <em>!</em> character and the
<em>!</em> character preceded by an <em>\</em> escape character, the
reference is handled in a special way. Note the differences between
@@ -3001,7 +2975,8 @@
</table>
</div>
<p>
- Contrast this with regular escaping, where <em>\</em> precedes <em>$</em>:
+ Contrast this with regular escaping, where <em>\</em> precedes
+ <em>$</em>:
</p>
<div align="left">
<table cellspacing="4" cellpadding="0" border="0">
@@ -3063,16 +3038,16 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Feedback</strong>
+ <a name="Feedback"><strong>Feedback</strong></a>
</font>
</td></tr>
<tr><td>
<blockquote>
- <a name="feedback" />
- <p>
+ <p>
If you encounter any mistakes in this manual or have
other feedback related to the Velocity User Guide, please
- email John Castura at [EMAIL PROTECTED] Thanks!
+ email <a href="mailto:[EMAIL PROTECTED]">John Castura</a>.
+ Thanks!
</p>
</blockquote>
</td></tr>
1.26 +13 -13 jakarta-velocity/docs/vtl-reference-guide.html
Index: vtl-reference-guide.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/vtl-reference-guide.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- vtl-reference-guide.html 2001/03/20 06:10:04 1.25
+++ vtl-reference-guide.html 2001/03/20 23:00:48 1.26
@@ -101,7 +101,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>About this Guide</strong>
+ <a name="About this Guide"><strong>About this Guide</strong></a>
</font>
</td></tr>
<tr><td>
@@ -116,7 +116,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>References</strong>
+ <a name="References"><strong>References</strong></a>
</font>
</td></tr>
<tr><td>
@@ -125,7 +125,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Variables</strong>
+ <a name="Variables"><strong>Variables</strong></a>
</font>
</td></tr>
<tr><td>
@@ -154,7 +154,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Properties</strong>
+ <a name="Properties"><strong>Properties</strong></a>
</font>
</td></tr>
<tr><td>
@@ -184,7 +184,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Methods</strong>
+ <a name="Methods"><strong>Methods</strong></a>
</font>
</td></tr>
<tr><td>
@@ -228,7 +228,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Directives</strong>
+ <a name="Directives"><strong>Directives</strong></a>
</font>
</td></tr>
<tr><td>
@@ -237,7 +237,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>#set - Establishes the value of a reference</strong>
+ <a name="#set - Establishes the value of a reference"><strong>#set -
Establishes the value of a reference</strong></a>
</font>
</td></tr>
<tr><td>
@@ -289,7 +289,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>#if / #elseif / #else - output conditional on truth of
statements</strong>
+ <a name="#if / #elseif / #else - output conditional on truth of
statements"><strong>#if / #elseif / #else - output conditional on truth of
statements</strong></a>
</font>
</td></tr>
<tr><td>
@@ -330,7 +330,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>#foreach - Loops through a list of objects</strong>
+ <a name="#foreach - Loops through a list of objects"><strong>#foreach -
Loops through a list of objects</strong></a>
</font>
</td></tr>
<tr><td>
@@ -423,7 +423,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>#include - Renders local file(s) that are not
parsed by Velocity</strong>
+ <a name="#include - Renders local file(s) that are not
parsed by Velocity"><strong>#include - Renders local file(s) that are not
parsed by Velocity</strong></a>
</font>
</td></tr>
<tr><td>
@@ -451,7 +451,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>#parse - Renders a local template that is parsed by
Velocity</strong>
+ <a name="#parse - Renders a local template that is parsed by
Velocity"><strong>#parse - Renders a local template that is parsed by
Velocity</strong></a>
</font>
</td></tr>
<tr><td>
@@ -484,7 +484,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>#stop - Stops the template engine</strong>
+ <a name="#stop - Stops the template engine"><strong>#stop - Stops the
template engine</strong></a>
</font>
</td></tr>
<tr><td>
@@ -509,7 +509,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>#macro - Allows users to define a Velocimacro (VM), a
repeated segment of a VTL template, as required</strong>
+ <a name="#macro - Allows users to define a Velocimacro (VM), a
repeated segment of a VTL template, as required"><strong>#macro - Allows users to
define a Velocimacro (VM), a repeated segment of a VTL template, as
required</strong></a>
</font>
</td></tr>
<tr><td>
1.7 +1 -1 jakarta-velocity/docs/ymtd/ymtd-changes.html
Index: ymtd-changes.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-changes.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ymtd-changes.html 2001/03/15 07:10:52 1.6
+++ ymtd-changes.html 2001/03/20 23:00:58 1.7
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Changes</strong>
+ <a name="Changes"><strong>Changes</strong></a>
</font>
</td></tr>
<tr><td>
1.7 +1 -1 jakarta-velocity/docs/ymtd/ymtd-conclusion.html
Index: ymtd-conclusion.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-conclusion.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ymtd-conclusion.html 2001/03/15 07:10:52 1.6
+++ ymtd-conclusion.html 2001/03/20 23:00:58 1.7
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Conclusion</strong>
+ <a name="Conclusion"><strong>Conclusion</strong></a>
</font>
</td></tr>
<tr><td>
1.6 +1 -1 jakarta-velocity/docs/ymtd/ymtd-embedded.html
Index: ymtd-embedded.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-embedded.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ymtd-embedded.html 2001/03/15 07:10:52 1.5
+++ ymtd-embedded.html 2001/03/20 23:00:59 1.6
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Embedded Usage</strong>
+ <a name="Embedded Usage"><strong>Embedded Usage</strong></a>
</font>
</td></tr>
<tr><td>
1.6 +1 -1 jakarta-velocity/docs/ymtd/ymtd-error-handling.html
Index: ymtd-error-handling.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-error-handling.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ymtd-error-handling.html 2001/03/15 07:10:52 1.5
+++ ymtd-error-handling.html 2001/03/20 23:01:00 1.6
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Error Handling</strong>
+ <a name="Error Handling"><strong>Error Handling</strong></a>
</font>
</td></tr>
<tr><td>
1.6 +1 -1 jakarta-velocity/docs/ymtd/ymtd-generation.html
Index: ymtd-generation.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-generation.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ymtd-generation.html 2001/03/15 07:10:52 1.5
+++ ymtd-generation.html 2001/03/20 23:01:00 1.6
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Generation?</strong>
+ <a name="Generation?"><strong>Generation?</strong></a>
</font>
</td></tr>
<tr><td>
1.5 +1 -1 jakarta-velocity/docs/ymtd/ymtd-hosting.html
Index: ymtd-hosting.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-hosting.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ymtd-hosting.html 2001/03/15 07:10:53 1.4
+++ ymtd-hosting.html 2001/03/20 23:01:00 1.5
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Hosting</strong>
+ <a name="Hosting"><strong>Hosting</strong></a>
</font>
</td></tr>
<tr><td>
1.8 +4 -4 jakarta-velocity/docs/ymtd/ymtd-implementation.html
Index: ymtd-implementation.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-implementation.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ymtd-implementation.html 2001/03/15 07:10:53 1.7
+++ ymtd-implementation.html 2001/03/20 23:01:01 1.8
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Implementation</strong>
+ <a name="Implementation"><strong>Implementation</strong></a>
</font>
</td></tr>
<tr><td>
@@ -107,7 +107,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>The first point: Standards</strong>
+ <a name="The first point: Standards"><strong>The first point:
Standards</strong></a>
</font>
</td></tr>
<tr><td>
@@ -146,7 +146,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>The next point: Complexity</strong>
+ <a name="The next point: Complexity"><strong>The next point:
Complexity</strong></a>
</font>
</td></tr>
<tr><td>
@@ -183,7 +183,7 @@
<table border="0"
cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#828DA6">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>The final point: Velocity</strong>
+ <a name="The final point: Velocity"><strong>The final point:
Velocity</strong></a>
</font>
</td></tr>
<tr><td>
1.7 +1 -1 jakarta-velocity/docs/ymtd/ymtd-javabeans.html
Index: ymtd-javabeans.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-javabeans.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ymtd-javabeans.html 2001/03/15 07:10:53 1.6
+++ ymtd-javabeans.html 2001/03/20 23:01:01 1.7
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>JavaBeans</strong>
+ <a name="JavaBeans"><strong>JavaBeans</strong></a>
</font>
</td></tr>
<tr><td>
1.8 +1 -1 jakarta-velocity/docs/ymtd/ymtd-sampleapp.html
Index: ymtd-sampleapp.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-sampleapp.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ymtd-sampleapp.html 2001/03/15 07:10:53 1.7
+++ ymtd-sampleapp.html 2001/03/20 23:01:01 1.8
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Sample Application</strong>
+ <a name="Sample Application"><strong>Sample Application</strong></a>
</font>
</td></tr>
<tr><td>
1.8 +1 -1 jakarta-velocity/docs/ymtd/ymtd-saying-hello.html
Index: ymtd-saying-hello.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-saying-hello.html,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ymtd-saying-hello.html 2001/03/15 07:10:53 1.7
+++ ymtd-saying-hello.html 2001/03/20 23:01:02 1.8
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Saying Hello</strong>
+ <a name="Saying Hello"><strong>Saying Hello</strong></a>
</font>
</td></tr>
<tr><td>
1.7 +1 -1 jakarta-velocity/docs/ymtd/ymtd-taglibs.html
Index: ymtd-taglibs.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd-taglibs.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ymtd-taglibs.html 2001/03/15 07:10:53 1.6
+++ ymtd-taglibs.html 2001/03/20 23:01:02 1.7
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Taglibs</strong>
+ <a name="Taglibs"><strong>Taglibs</strong></a>
</font>
</td></tr>
<tr><td>
1.7 +4 -4 jakarta-velocity/docs/ymtd/ymtd.html
Index: ymtd.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/ymtd/ymtd.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ymtd.html 2001/03/15 07:10:54 1.6
+++ ymtd.html 2001/03/20 23:01:03 1.7
@@ -99,7 +99,7 @@
<table
border="0" cellspacing="0" cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>You make the decision.</strong>
+ <a name="You make the decision."><strong>You make the
decision.</strong></a>
</font>
</td></tr>
<tr><td>
@@ -130,7 +130,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>What are we comparing?</strong>
+ <a name="What are we comparing?"><strong>What are we
comparing?</strong></a>
</font>
</td></tr>
<tr><td>
@@ -170,7 +170,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Credits</strong>
+ <a name="Credits"><strong>Credits</strong></a>
</font>
</td></tr>
<tr><td>
@@ -203,7 +203,7 @@
<table border="0" cellspacing="0"
cellpadding="2" width="100%">
<tr><td bgcolor="#525D76">
<font color="#ffffff" face="arial,helvetica,sanserif">
- <strong>Revisions / Corrections / Additions</strong>
+ <a name="Revisions / Corrections / Additions"><strong>Revisions /
Corrections / Additions</strong></a>
</font>
</td></tr>
<tr><td>
1.4 +8 -12
jakarta-velocity/src/java/org/apache/velocity/runtime/resource/loader/ClasspathResourceLoader.java
Index: ClasspathResourceLoader.java
===================================================================
RCS file:
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/resource/loader/ClasspathResourceLoader.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ClasspathResourceLoader.java 2001/03/20 17:15:04 1.3
+++ ClasspathResourceLoader.java 2001/03/20 23:01:08 1.4
@@ -104,7 +104,7 @@
* work just fine.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
- * @version $Id: ClasspathResourceLoader.java,v 1.3 2001/03/20 17:15:04 geirm Exp $
+ * @version $Id: ClasspathResourceLoader.java,v 1.4 2001/03/20 23:01:08 jon Exp $
*/
public class ClasspathResourceLoader extends ResourceLoader
{
@@ -148,29 +148,25 @@
* log and convert to a general Velocity ResourceNotFoundException
*/
- throw new ResourceNotFoundException( fnfe.getMessage() );
+ throw new ResourceNotFoundException( fnfe.getMessage() );
}
return result;
}
+ /**
+ * Defaults to return false.
+ */
public boolean isSourceModified(Resource resource)
{
return false;
}
+ /**
+ * Defaults to return 0
+ */
public long getLastModified(Resource resource)
{
return 0;
}
}
-
-
-
-
-
-
-
-
-
-
1.36 +86 -90 jakarta-velocity/xdocs/user-guide.xml
Index: user-guide.xml
===================================================================
RCS file: /home/cvs/jakarta-velocity/xdocs/user-guide.xml,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- user-guide.xml 2001/03/20 06:06:05 1.35
+++ user-guide.xml 2001/03/20 23:01:10 1.36
@@ -10,62 +10,63 @@
<body>
-<a name="toc" /><section name="Table of Contents">
-<p>
+<section name="Table of Contents">
+
<ol>
-<li><a href="#about">About this guide</a></li>
-<li><a href="#what">What is Velocity</a></li>
-<li><a href="#can">What can Velocity do for me?</a></li>
- <ul>
- <li><a href="#mudstore">The Mud Store example</a></li>
- </ul>
-<li><a href="#intro">Velocity Template Language (VTL): An Introduction</a></li>
-<li><a href="#helloworld">Hello Velocity World!</a></li>
-<li><a href="#comments">Comments</a></li>
-<li><a href="#references">References</a></li>
- <ul>
- <li><a href="#variables">Variables</a></li>
- <li><a href="#properties">Properties</a></li>
- <li><a href="#methods">Methods</a></li>
- </ul>
-<li><a href="#formal_notation">Formal Reference Notation</a></li>
-<li><a href="#quiet_notation">Quiet Reference Notation</a></li>
-<li><a href="#literal">Getting literal</a></li>
- <ul>
- <li><a href="#currency">Currency</a></li>
- <li><a href="#escaping">Escaping Valid VTL References</a></li>
- </ul>
-<li><a href="#case">Case Substitution</a></li>
-<li><a href="#directives">Directives</a></li>
- <ul>
- <li><a href="#set">Set</a></li>
- <li><a href="#ifelse">If-Else Statements</a></li>
- <ul>
- <li><a href="#relational_ops">Relational and Logical Operators</a></li>
- </ul>
- <li><a href="#foreach">Foreach Loops</a></li>
- <li><a href="#include">Include</a></li>
- <li><a href="#parse">Parse</a></li>
- <li><a href="#stop">Stop</a></li>
- <li><a href="#velocimacros">Velocimacros</a></li>
- </ul>
-<li><a href="#escaping_vtl">Escaping VTL Directives</a></li>
-<li><a href="#formatting">VTL: Formatting Issues</a></li>
-<li><a href="#other">Other Features</a></li>
- <ul>
- <li><a href="#math">Math</a></li>
- <li><a href="#range">Range Operator</a></li>
- <li><a href="#escaping_advanced">Advanced Issues: Escaping and !</a></li>
- </ul>
-<li><a href="#feedback">Feedback</a></li>
+<li><a href="#About this Guide">About this Guide</a></li>
+<li><a href="#What is Velocity?">What is Velocity?</a></li>
+<li><a href="#What can Velocity do for me?">What can Velocity do for me?</a></li>
+ <ol>
+ <li><a href="#The Mud Store Example">The Mud Store example</a></li>
+ </ol>
+<li><a href="#Velocity Template Language (VTL): An
+Introduction">Velocity Template Language (VTL): An Introduction</a></li>
+<li><a href="#Hello Velocity World!">Hello Velocity World!</a></li>
+<li><a href="#Comments">Comments</a></li>
+<li><a href="#References">References</a></li>
+ <ol>
+ <li><a href="#Variables">Variables</a></li>
+ <li><a href="#Properties">Properties</a></li>
+ <li><a href="#Methods">Methods</a></li>
+ </ol>
+<li><a href="#Formal Reference Notation">Formal Reference Notation</a></li>
+<li><a href="#Quiet Reference Notation">Quiet Reference Notation</a></li>
+<li><a href="#Getting literal">Getting literal</a></li>
+ <ol>
+ <li><a href="#Currency">Currency</a></li>
+ <li><a href="#Escaping Valid VTL References">Escaping Valid VTL
References</a></li>
+ </ol>
+<li><a href="#Case Substitution">Case Substitution</a></li>
+<li><a href="#Directives">Directives</a></li>
+ <ol>
+ <li><a href="#Set">Set</a></li>
+ <li><a href="#String Literals">String Literals</a></li>
+ <li><a href="#Conditionals">If-Else Statements</a></li>
+ <ol>
+ <li><a href="#Relational and Logical Operators">Relational and Logical
+ Operators</a></li>
+ </ol>
+ <li><a href="#Loops">Foreach Loops</a></li>
+ <li><a href="#Include">Include</a></li>
+ <li><a href="#Parse">Parse</a></li>
+ <li><a href="#Stop">Stop</a></li>
+ <li><a href="#Velocimacros">Velocimacros</a></li>
+ </ol>
+<li><a href="#Escaping VTL Directives">Escaping VTL Directives</a></li>
+<li><a href="#VTL: Formatting Issues">VTL: Formatting Issues</a></li>
+<li><a href="#Other Features">Other Features</a></li>
+ <ol>
+ <li><a href="#Math">Math</a></li>
+ <li><a href="#Range Operator">Range Operator</a></li>
+ <li><a href="#Advanced Issues: Escaping and !">Advanced Issues: Escaping
and
+ !</a></li>
+ </ol>
+<li><a href="#Feedback">Feedback</a></li>
</ol>
-</p>
-</section>
-<p/>
+</section>
<section name="About this Guide">
-<a name="about" />
<p>
The Velocity User Guide is intended to help page designers and
@@ -83,7 +84,6 @@
</section>
<section name="What is Velocity?">
-<a name="what" />
<p>
Velocity is a Java-based template engine. It permits web page
@@ -113,9 +113,7 @@
</section>
<section name="What can Velocity do for me?">
-<a name="can" />
<subsection name="The Mud Store Example">
-<a name="mudstore" />
<p>
Suppose you are a page designer for an online store that specializes
in selling mud. Let's call it "The Online Mud Store". Business is
@@ -197,7 +195,7 @@
</section>
<section name="Velocity Template Language (VTL): An Introduction">
-<a name="intro" />
+
<p>
The Velocity Template Language (VTL) is meant to provide the
easiest, simplest, and cleanest way to incorporate dynamic content
@@ -261,7 +259,7 @@
</section>
<section name="Hello Velocity World!">
-<a name="helloworld" />
+
<p>
Once a value has been assigned to a variable, you can reference the
variable anywhere in your HTML document. In the following example, a
@@ -291,7 +289,7 @@
</section>
<section name="Comments">
-<a name="comments" />
+
<p>
Comments allows descriptive text to be included that is not placed
into the output of the template engine. Comments are a useful way of
@@ -360,7 +358,7 @@
</section>
<section name="References">
-<a name="references" />
+
<p>
There are three types of references in the VTL: variables,
properties and methods. As a designer using the VTL, you and your
@@ -376,7 +374,7 @@
</p>
<p>
-<a name="variables" /><strong>Variables</strong>
+ <a name="Variables"><strong>Variables</strong></a>
<br/>
The shorthand notation of a variable consists of a leading "$"
character followed by a VTL <em>Identifier</em>. A VTL Identifier
@@ -424,7 +422,7 @@
</p>
<p>
-<a name="properties" /><strong>Properties</strong>
+ <a name="Properties"><strong>Properties</strong></a>
<br/>
The second flavor of VTL references are properties, and properties
have a distinctive format. The shorthand notation consists of a
@@ -451,7 +449,7 @@
</p>
<p>
-<a name="methods" /><strong>Methods</strong>
+ <a name="Methods"><strong>Methods</strong></a>
<br/>
A method is defined in the Java code and is capable of doing
something useful, like running a calculation or arriving at a
@@ -515,7 +513,7 @@
]]></source>
<p>
-<a name="formal_notation" /><strong>Formal Reference Notation</strong>
+ <a name="Formal Reference Notation"><strong>Formal Reference
Notation</strong></a>
<br/>
Shorthand notation for references was used for the examples listed
above, but there is also a formal notation for references, which is
@@ -567,7 +565,7 @@
<p>
-<a name="quiet_notation" /><strong>Quiet Reference Notation</strong>
+ <a name="Quiet Reference Notation"><strong>Quiet Reference
Notation</strong></a>
<br/>
When Velocity encounters an undefined reference, its normal behavior
is to output the image of the reference. For example, suppose the
@@ -608,7 +606,7 @@
</section>
<section name="Getting literal">
-<a name="literal" />
+
<p>
VTL uses special characters, such as <em>$</em> and <em>#</em>, to
do its work, so some added care should be taken where using these
@@ -617,7 +615,7 @@
</p>
<p>
-<a name="currency" /><strong>Currency</strong>
+ <a name="Currency"><strong>Currency</strong></a>
<br/>
There is no problem writing "I bought a 4 lb. sack of potatoes at
the farmer's market for only $2.50!" As mentioned, a VTL identifier
@@ -626,7 +624,7 @@
</p>
<p>
-<a name="escaping" /><strong>Escaping Valid VTL References</strong>
+ <a name="Escaping Valid VTL References"><strong>Escaping Valid VTL
References</strong></a>
<br/>
Cases may arise where there is the potential for Velocity to get
confused. <em>Escaping</em> special characters is the best way to
@@ -724,7 +722,7 @@
</section>
<section name="Case Substitution">
-<a name="case" />
+
<p>
Now that you are familiar with references, you can begin to apply
them effectively in your templates. Velocity references take
@@ -773,7 +771,7 @@
<section name="Directives">
-<a name="directives" />
+
<p>
References allow template designers to generate dynamic content for
web sites, while <em>directives</em> -- easy to use script elements
@@ -782,7 +780,7 @@
content of the web site.
</p>
-<a name="set" /><strong>#set</strong>
+ <a name="Set"><strong>#set</strong></a>
<p>
The <em>#set</em> directive is used for setting the value of a
reference. A value can be assigned to either a variable reference or
@@ -842,7 +840,7 @@
of an assignment.
</p>
-<a name="string_literals" /><strong>String Literals</strong>
+<a name="String Literals"><strong>String Literals</strong></a>
<p>
When using the <em>#set</em> directive, string literals that are
@@ -894,8 +892,8 @@
<section name="Conditionals">
-<a name="conditionals" />
-<a name="ifelse" /><strong>If / ElseIf / Else</strong>
+
+ <strong>If / ElseIf / Else</strong>
<p>
The <em>#if</em> directive in Velocity allows for text to be
included when the web page is generated, on the conditional that
@@ -951,10 +949,9 @@
</p>
<p>
-<a name="relational_ops" /><strong>Relational and Logical Operators</strong>
+ <a name="Relational and Logical Operators"><strong>Relational and Logical
Operators</strong></a>
</p>
-
<p>
Velocity uses the equivalent operator to determine the relationships between
variables.
Here is a simple example to illustrate how the equivalent operator is used.
@@ -1022,9 +1019,9 @@
</section>
<section name="Loops">
-<a name="loops" />
-<strong>Foreach Loop</strong>
-<a name="foreach" />
+
+ <strong>Foreach Loop</strong>
+
<p>
The <em>#foreach</em> element allows for looping. For example:
</p>
@@ -1057,7 +1054,7 @@
</section>
<section name="Include">
-<a name="include" />
+
<p>
The <em>#include</em> script element allows the template designer to
import a local file, which is then inserted into the location where
@@ -1095,7 +1092,7 @@
</section>
<section name="Parse">
-<a name="parse" />
+
<p>
The <em>#parse</em> script element allows the template designer to
import a local file that contains VTL. Velocity will parse the VTL
@@ -1160,7 +1157,7 @@
<section name="Stop">
-<a name="stop" />
+
<p>
The <em>#stop</em> script element allows the template designer to
stop the execution of the template engine and return. This is useful
@@ -1173,7 +1170,7 @@
</section>
<section name="Velocimacros">
-<a name="velocimacros" />
+
<p>
The <em>#macro</em> script element allows template designers to
define a repeated segment of a VTL template. Velocimacros are very
@@ -1338,7 +1335,6 @@
</section>
<section name="Escaping VTL Directives">
-<a name="escaping_vtl" />
<p>
VTL directives can be escaped with the backslash character ("\") in
a manner similar to valid VTL references.
@@ -1412,7 +1408,6 @@
</section>
<section name="VTL: Formatting Issues">
-<a name="formatting" />
<p>
Although VTL in this user guide is often displayed with newlines and
@@ -1468,9 +1463,9 @@
</section>
<section name="Other Features">
-<a name="other" />
+
<subsection name="Math">
-<a name="math" />
+
<p>
Velocity has a handful of built-in mathematical functions that can
be used in templates with the <em>set</em> directive. The following
@@ -1541,7 +1536,7 @@
</subsection>
<subsection name="Range Operator">
-<a name="range" />
+
<p>
The range operator can be used in conjunction with <em>#set</em> and
<em>#foreach</em> statements. Useful for its ability to produce an
@@ -1614,7 +1609,7 @@
</subsection>
<subsection name="Advanced Issues: Escaping and !">
-<a name="escaping_advanced" />
+
<p>
When a reference is silenced with the <em>!</em> character and the
<em>!</em> character preceded by an <em>\</em> escape character, the
@@ -1643,7 +1638,8 @@
]]></source>
<p>
- Contrast this with regular escaping, where <em>\</em> precedes <em>$</em>:
+ Contrast this with regular escaping, where <em>\</em> precedes
+ <em>$</em>:
</p>
<source><![CDATA[
@@ -1669,12 +1665,12 @@
</section>
<section name="Feedback">
-<a name="feedback" />
<p>
If you encounter any mistakes in this manual or have
other feedback related to the Velocity User Guide, please
- email John Castura at [EMAIL PROTECTED] Thanks!
+ email <a href="mailto:[EMAIL PROTECTED]">John Castura</a>.
+ Thanks!
</p>
</section>