You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Matías Giovannini <ma...@k-bell.com> on 2003/08/07 02:27:40 UTC

Re: [veltools] xhtml setting for tools and macros

On Wednesday, Jul 30, 2003, at 14:06 America/Buenos_Aires, Nathan Bubna 
wrote:

[] in velocity.properties
[] in toolbox.xml as standard <data type="boolean"> element
[x] in toolbox.xml as new <xhtml>true|false</xhtml> element
[] ______________

Key (for in-template checking):
[] $XHTML
[] $isXhtml
[] $XHTML_MODE
[x] $isXHTML

Rationale: it's a boolean value (a.k.a. predicate), so the "is" prefix 
is appropriate. However, "XHTML" is an acronym, so it should be 
uppercase (cf. getUrl() vs. getURL() snafu in the original Servlet 
spec).

My $2*10^-2.


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org


Re: [veltools] xhtml setting for tools and macros

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Matías Giovannini <ma...@k-bell.com> writes:
...
> [] in velocity.properties
> [] in toolbox.xml as standard <data type="boolean"> element
> [x] in toolbox.xml as new <xhtml>true|false</xhtml> element
> [] ______________
> 
> Key (for in-template checking):
> [] $XHTML
> [] $isXhtml
> [] $XHTML_MODE
> [x] $isXHTML
> 
> Rationale: it's a boolean value (a.k.a. predicate), so the "is" prefix
> is appropriate. However, "XHTML" is an acronym, so it should be
> uppercase (cf. getUrl() vs. getURL() snafu in the original Servlet
> spec).

Ditto, if anyone still cares.
-- 

Daniel Rall

Re: [veltools] xhtml setting for tools and macros

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Matías Giovannini <ma...@k-bell.com> writes:
...
> [] in velocity.properties
> [] in toolbox.xml as standard <data type="boolean"> element
> [x] in toolbox.xml as new <xhtml>true|false</xhtml> element
> [] ______________
> 
> Key (for in-template checking):
> [] $XHTML
> [] $isXhtml
> [] $XHTML_MODE
> [x] $isXHTML
> 
> Rationale: it's a boolean value (a.k.a. predicate), so the "is" prefix
> is appropriate. However, "XHTML" is an acronym, so it should be
> uppercase (cf. getUrl() vs. getURL() snafu in the original Servlet
> spec).

Ditto, if anyone still cares.
-- 

Daniel Rall

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org