jon 00/11/26 15:05:56
Modified: docs anakia.html
Log:
more documentation
Revision Changes Path
1.3 +24 -8 jakarta-velocity/docs/anakia.html
Index: anakia.html
===================================================================
RCS file: /home/cvs/jakarta-velocity/docs/anakia.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- anakia.html 2000/11/26 06:52:40 1.2
+++ anakia.html 2000/11/26 23:05:56 1.3
@@ -97,12 +97,23 @@
<P align="justify">
<DIV align="center"><TABLE border="0" cellpadding="0" cellspacing="4"><TR><TD
bgcolor="#023264" height="1" width="1"><IMG border="0" height="1" hspace="0"
src="resources/void.gif" vspace="0" width="1"></TD><TD bgcolor="#023264"
height="1"><IMG border="0" height="1" hspace="0" src="resources/void.gif" vspace="0"
width="1"></TD><TD bgcolor="#023264" height="1" width="1"><IMG border="0" height="1"
hspace="0" src="resources/void.gif" vspace="0" width="1"></TD></TR><TR><TD
bgcolor="#023264" width="1"><IMG border="0" height="1" hspace="0"
src="resources/void.gif" vspace="0" width="1"></TD><TD
bgcolor="#ffffff"><PRE><project name="build-site"
default="docs" basedir=".">
- <property name="project.name" value="site"/>
<property name="docs.src" value="../xdocs"/>
<property name="docs.dest" value="../docs"/>
- <taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask"/>
- <target name="docs">
+ <target name="prepare">
+ <available classname="org.apache.velocity.anakia.AnakiaTask"
+ property="AnakiaTask.present"/>
+ </target>
+
+ <target depends="prepare" name="prepare-error"
unless="AnakiaTask.present">
+ <echo>
+ AnakiaTask is not present! Please check to make sure that
+ velocity.jar is in your classpath.
+ </echo>
+ </target>
+
+ <target name="docs" depends="prepare-error"
if="AnakiaTask.present">
+ <taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask"/>
<anakia basedir="${docs.src}" destdir="${docs.dest}/"
extension=".html" style="./site.vsl"
projectFile="./stylesheets/project.xml"
@@ -275,12 +286,17 @@
</FONT></TD>
</TR>
<TR>
- <TD align="left" bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top"><FONT color="#000000" face="arial,helvetica,sanserif"
size="-1">$xpath.applyTo("/document/author", $root)
+ <TD align="left" bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top"><FONT color="#000000" face="arial,helvetica,sanserif"
size="-1">$xpath.applyTo("document/properties/@title", $root)
</FONT></TD>
- <TD align="left" bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top"><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">This
context object returns a List of NodeSet objects.
- Essentially, it gives you the power of the XPath specification
- within Anakia. This context object is still under development
- and more documentation will follow soon.
+ <TD align="left" bgcolor="#a0ddf0" colspan="" rowspan=""
valign="top"><FONT color="#000000" face="arial,helvetica,sanserif" size="-1">
+ The W3C XPath Specification <A
href="http://www.w3.org/TR/xpath/">http://www.w3.org/TR/xpath/
+ </A> refers to NodeSets repeatedly, but this implementation
+ simply uses java.util.List to hold all Nodes. A 'Node' is any
+ object in a JDOM object tree, such as an org.jdom.Element,
+ org.jdom.Document, or org.jdom.Attribute. Please see the .vsl
+ example file and the org.apache.velocity.anakia.XPathTool javadoc
+ for more information.
+
</FONT></TD>
</TR>
</TABLE>