OK, what I have devised is to add a parent parameter tag to the tiles.put tag to give me:
* @tiles.definition * name="/dynamic/tiles/viewManyCompanies" * extends="base" * * @tiles.put * name="body" * parent="/dynamic/tiles/viewManyCompanies" * value="/dynamic/company/listCompany.jsp" Now in my template file I have a tag which reads this in as an "if" but I need to get the "parent" value. The following code throws an error. <XDtClass:ifClassTagValueEquals tagName="tiles.put" paramName="parent" value="<XDtClass:classTagValue tagName="tiles.definition" paramName="name"/>"> Is it possible to somehow dynmaically evaluate the values from within the template? Thanks Jordan -----Original Message----- From: Jordan Thomas [mailto:jot@;ipa.fhg.de] Sent: Monday, 11 November 2002 5:00 PM To: '[EMAIL PROTECTED]' Subject: Problem with template looping Hi All, I am trying to write a template file that can parse the following tags: /** * tags removed to make it easier to read * * @tiles.definition * name="/dynamic/tiles/viewOneCompany" * extends="base" * * @tiles.put * name="body" * value="/dynamic/company/viewCompany.jsp" * * @tiles.definition * name="/dynamic/tiles/viewManyCompanies" * extends="base" * * @tiles.put * name="body" * value="/dynamic/company/listCompany.jsp" * */ Essentially what I want to do is to have the tiles.put tag associated (nested inside) a tile.definition tag. I have written a template that has some code in it that contains the following snippet: <!-- loops around the tiles.definition tag --> <XDtClass:forAllClassTags tagName="tiles.definition"> <definition name="<XDtClass:classTagValue tagName="tiles.definition" paramName="name"/>"> <!-- nests the tiles.put tag --> <XDtClass:forAllClassTags tagName="tiles.put"> <put name="<XDtClass:classTagValue tagName="tiles.put" paramName="name"/>" value="<XDtClass:classTagValue tagName="tiles.put" paramName="value"/>"/> </XDtClass:forAllClassTags> </definition> </XDtClass:forAllClassTags> <!-- my generated xml file from the above javadocs--> <definition name="/dynamic/tiles/viewOneCompany" extends="base"> <put name="body" value="/dynamic/company/viewCompany.jsp"/> <put name="body" value="/dynamic/company/listCompany.jsp"/> </definition> <definition name="/dynamic/tiles/viewManyCompanies" extends="base"> <put name="body" value="/dynamic/company/viewCompany.jsp"/> <put name="body" value="/dynamic/company/listCompany.jsp"/> </definition> Notice that the "/dynamic/tiles/viewOneCompany" and the "/dynamic/tiles/viewManyCompanies" definitions have two elements in them for body. That is not what I want. I want the code tp look like: <definition name="/dynamic/tiles/viewOneCompany" extends="base"> <put name="body" value="/dynamic/company/viewCompany.jsp"/> </definition> <definition name="/dynamic/tiles/viewManyCompanies" extends="base"> <put name="body" value="/dynamic/company/listCompany.jsp"/> </definition> Is it possible to do this? I was thinking of setting some kind of a counter or something but I am not sure if this is possible. Any help would be great. Thanks Jordan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
