Need some help with function

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Gertt Offline
Junior Member
Posts: 3
Joined: Sep 2010
Reputation: 0
Post: #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 "" as plot, but never "test".

<GetDetails dest="7">
   <RegExp input="$$2" output="&lt;plot&gt;&lt;url function=&quot;GoGoogle&quot;&gt;;/url&gt;&lt;/plot&gt;" dest="4+">

   <RegExp input="$$1" output="test" dest="3">
find quote
spiff Offline
Retired Developer
Posts: 12,384
Joined: Nov 2003
Post: #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

<details><url function="GoGoogle">..</url></details> from GetDetails
<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.
find quote