Need some help with function
#1
Could anyone tell me what I'm doing wrong here?
It either (forgot which one with this code, will confirm when I get home) displays "url" or "http://www.google.be/" as plot, but never "test".

Code:
<GetDetails dest="7">
   (...)
   <RegExp input="$$2" output="&lt;plot&gt;&lt;url function=&quot;GoGoogle&quot;&gt;http://www.google.be/&lt;/url&gt;&lt;/plot&gt;" dest="4+">
      <expression></expression>
   </RegExp>
   (...)
</GetDetails>

<GoGoogle>
   <RegExp input="$$1" output="test" dest="3">
      <expression></expression>
   </RegExp>
</GoGoogle>
Reply
#2
you seem to have misunderstood a bit. you can't chain within xml tags. each called function needs to return xml in the format <details>..</details>. the outputs you seek is

Code:
<details><url function="GoGoogle">..</url></details> from GetDetails
and
Code:
<details><plot>test</plot></details> from GoGoogle

the outputs are processed additively. i.e. if a tag is set in both GetDetails and GoGoogle, the GoGoogle value takes precedence since it is processed last.
Reply

Logout Mark Read Team Forum Stats Members Help
Need some help with function0