greetings,

i ran into this problem while trying to generate <component> tags for
hibernate class mappings.

assuming a tag like this
    @hibernate.component funnyAttr="haha"

which is processed by the following excerpt of a template.

     <XDtMethod:ifHasMethodTag tagName="hibernate.component">
        <component
            name="<XDtMethod:propertyName />"
            class="<XDtMethod:methodTagValue tagName="hibernate.component"
                    paramName="class" default="<XDtMethod:methodType/>"/>" >

            <XDtClass:pushClass value="<XDtMethod:methodTagValue
tagName='hibernate.component'
                                paramName='class'
default='<XDtMethod:methodType/>' />">
                <XDtMethod:forAllMethods superclasses="true" sort="true">
                    <XDtMerge:merge
file="xdoclet/modules/hibernate/resources/hibernate-
                                            properties.xdt">
                    </XDtMerge:merge>
                </XDtMethod:forAllMethods>
            </XDtClass:pushClass>
        </component>
     </XDtMethod:ifHasMethodTag>

i wanted the value of funnyAttr to be available during the processing of the
embedded <property> tag which is handled by the merged template above
(hibernate-properties.xdt). it may be due to my limited understanding of the
tag handlers but i'm just looking for a handler context which will give me
the value of an attribute on the parent tag...

regards
ravi

 

Reply via email to