Description |
An optional period following the initial delimiter controls
whether the whitespace preceding the construct is or is not
sent to the output.
By default, whitespace is stripped for all constructs except
characters, XPath expressions, and Java expressions.
To reverse the default, simply place a period after the
initial delimiter character.
|
Simple Form |
#.anything#
#.#
|
XML Form |
<anything whitespace="reverse"> ...
<empty whitespace="reverse"/>
|
Translation to Java |
Whitespace preceding the construct is sent to the output
according to the rules expressed in the description
|
Example Template |
x.template
1. abc # // comment #def
2. abc #. // comment #def
3. abc #("def")#
4. abc #.("def")#
5. abc #"//name"#
6. abc #."//name"#
7. abc #.#def
8. abc #.# def
|
|
Example Spec |
spec.xml
<?xml version="1.0"?>
<name>Craig</name>
|
|
Generated Output |
x
1. abcdef
2. abc def
3. abc def
4. abcdef
5. abc Craig
6. abcCraig
7. abcdef
8. abc def
|
|