Need some help with function

  Thread Rating:
  • 0 Votes - 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 "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>
find quote
spiff Offline
Retired Developer
Posts: 12,386
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

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.
find quote