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:typeWithoutDimensions>
 
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

Reply via email to