1. just do a XDtType:ifIsOfType and ouput integer in the block.
  2. nothing specifically for that, write a new template namespace to handle it or enhance XDtType:
    <XDtType:typeWithoutDimension type=”<XDtMethod:methodType/>”/>

 

Ara.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bart Guijt
Sent:
Monday, February 25, 2002 2:16 AM
To:
[EMAIL PROTECTED]
Subject: [Xdoclet-devel] Some questions regarding XDoclet template elements

 

Hi!

 

While fixing some Castor templates, I couldn't find ways to do the following:

 

1) In Castor, the field type for a Java 'int' must be 'integer'. So, I searched for a XDoclet tag which could take care of some sort of mapping, or translation, along the lines of:

 

    <XDtString:translate from="int" to="integer"><!-- body --></XDtString:translate>

 

Is something like this possible?

 

2) In Castor, the field type for a Java Array (like 'fooBar[]') must appear in the Castor mapping as 'fooBar', without the brackets. How do I do this?

 

Thanks for any pointers!

 

Ciao,

 

Bart Guijt

Reply via email to