Description |
The XPath expression, path, is evaluated as a String expression
and sent to the output.
|
Simple Form |
#"path"#
|
XML Form |
<value path="path">
|
Translation to Java |
out.print(context.evalString("path"));
|
Example Template |
HelloWorld.template
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello #"//name"#");
}
}
|
|
Example Spec |
spec.xml
<?xml version="1.0"?>
<name>Craig</name>
|
|
Generated Output |
HelloWorld.java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello Craig");
}
}
|
|