Hi,

I'd like to offer some suggestions, but unfortunately I just don't
understand your question. Perhaps if you could include the actual code
you have so far, that would help clarify what you are trying to achieve.
A DTD/schema or simple description of the input xml would also be
useful. And is this XML "fixed", or do you have the option of changing
this schema if it would make it easier to parse?


Regards,

Simon

On Mon, 2003-09-01 at 21:24, Geronimo Ma. Hernandez wrote:
> Hello,
> 
> I try to transform this XML-content:
> 
> <entity name="anEntity">
>       <addAttribute   name="rowid"/>
>       <addAttribute   name="dbid">
>               <unique-index   idx_number="1" idx_order="1"/>
>       </addAttribute>
> </entity>
> 
> with a definition-object for enitity. A CallMethodRule gets rid of the 
> "entity/addAttribute"-pattern, combined with a CallParamRule for the 
> name-attribute. 
> For the "entity/addAttribute/unique-index"-pattern I also added a 
> CallMethodRule, with CallParamRules for idx_number and idx_order.
> But now, I got stuck.
> 
> How could I access the name-attribute of /entity/addAttribute ?
> 
> With the help of a debugger I found the value "dbid" in digester.params as an 
> entry below the parameters for the unique-index method call.
> 
> Is it possible to access this value with the existing *Rules-classes, or do I 
> have to build a new one? The digester.peekParams(n) is classified as "package 
> private" ...
> Could anyone shine me a light on how to do it the right way?
> 
> Many thanks for your attention.
> 
> Gero
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to