(xml-parse xml-source d) put result in context (bug or feature?)

Q&A's, tips, howto's
Locked
IVShilov
Posts: 23
Joined: Wed Apr 12, 2017 1:58 am

(xml-parse xml-source d) put result in context (bug or feature?)

Post by IVShilov »

Hi all.
When wrapper sxml:parse called from external function, all symbols goes to context "sxml":

Code: Select all

((define (sxml:parse xml-source d)
   (xml-type-tags nil nil nil nil)
   (xml-parse xml-source d)
   )
 {<br/>}
31
 )
returns

Code: Select all

((br))
, but:

Code: Select all

((define (some-function xml-source)
   (sxml:parse xml-source 31)
   )
 {<br/>} 
 )
returns

Code: Select all

((sxml:br))
Bug?

Locked