I personally think a content tag makes the most sense for this purpose. I
think of block tags as either iterators or conditionals over the content
inside, whereas you just want to output the non-array type from a type
passed in.
Just my $0.01 worth! :)
Erik
----- Original Message -----
From: "Bart Guijt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 30, 2002 11:48 AM
Subject: [Xdoclet-devel] Creating a <XDtType:typeWithoutDimensions> tag
Hi,
In order to support a better Castor mapping file I would like to wrate a new
template tag which expects a regular Java type and returns the same type
without any dimension specification, ie:
int[][] --> int
String --> String
The idea is clear. Now what is in your opinion the best type of template to
use?
Either a block tag:
<XDtType:typeWithoutDimensions><XDtMethod:methodType/></XDtType:typeWithoutD
imensions>
or a content tag:
<XDtType:typeWithoutDimensions type="<XDtMethod:methodType/>">
which IMHO looks a bit obscure, but according to the JavaDoc of
'xdoclet.template.TemplateEngine.outputOf()' perfectly legal.
Thoughts?
Ciao,
BG
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel