You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Nathan Bubna <na...@esha.com> on 2003/07/30 19:06:19 UTC
[veltools] xhtml setting for tools and macros
ok, so a few days ago we discussed adding some way for tools and velocimacros
to check whether VelocityView/VelocityStruts should be outputting XHTML or
just HTML. i think a standardized means of setting/checking this would be
useful for tools like LinkTool, and will become *essential* once we begin
creating libraries of standard velocimacros for the View and Struts packages.
the question is, "where and how do we set and check this setting?" i said
that i think such a setting would be best set in the user's toolbox.xml
(Marino had suggested the velocity.properties). i'm curious to hear what
anyone else thinks about that. i rather strongly feel this should be set as
an application attribute for efficiency and the ease with which such a setting
can be overridden on a per page/request/session basis thanks to the
ChainedContext. if anyone has other thoughts their, now is the time to speak
up.
also, i'm *especially* interested in opinions on what the key for that
attribute should be. here's a form for your voting convenience:
Where to set:
[] in velocity.properties
[] in toolbox.xml as standard <data type="boolean"> element
[] in toolbox.xml as new <xhtml>true|false</xhtml> element
[] ______________
Key (for in-template checking):
[] $XHTML
[] $isXhtml
[] $XHTML_MODE
[] _______________
Nathan Bubna
nathan@esha.com
---------------------------------------------------------------------
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
Re: [veltools] xhtml setting for tools and macros
Posted by Matías Giovannini <ma...@k-bell.com>.
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.
RE: [veltools] xhtml setting for tools and macros
Posted by "Marinó A. Jónsson" <ma...@centrum.is>.
[] 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):
[x] $XHTML
[] $isXhtml
[] $XHTML_MODE
[] _______________
cheers,
Marino
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org
---------------------------------------------------------------------
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 Matías Giovannini <ma...@k-bell.com>.
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