[ignore] Revamped fn:trace() a bit; the output is now inspired by saxon, with difference that an element() is serialized.
[ignore] Revamped fn:trace() a bit; the output is now inspired by saxon, with difference that an element() is serialized.

port of rev15574

example:
trace( ( <a>b</a>, "ccc", xs:string("aa"), xs:int(1) ),"bbb" )

yields into:
2011-12-11 19:55:33,397 [Thread-12] DEBUG (FunTrace.java [eval]:123) - bbb [1]: element(): <a>b</a> 
2011-12-11 19:55:33,397 [Thread-12] DEBUG (FunTrace.java [eval]:123) - bbb [2]: xs:string: ccc 
2011-12-11 19:55:33,397 [Thread-12] DEBUG (FunTrace.java [eval]:123) - bbb [3]: xs:string: aa 
2011-12-11 19:55:33,397 [Thread-12] DEBUG (FunTrace.java [eval]:123) - bbb [4]: xs:int: 1 

note: fn:trace() is a powerful function that can be used to intercept data when code calls e.g. a function. See http://www.w3.org/TR/xpath-functions/#func-trace

svn path=/stable/eXist-1.4.x/; revision=15575

dizzzz/exist,jensopetersen/exist,eXist-db/exist,RemiKoutcherawy/exist,olvidalo/exist,kohsah/exist,windauer/exist,adamretter/exist,joewiz/exist,kohsah/exist,patczar/exist,wshager/exist,zwobit/exist,MjAbuz/exist,kohsah/exist,jensopetersen/exist,patczar/exist,ljo/exist,opax/exist,jessealama/exist,wolfgangmm/exist,kohsah/exist,lcahlander/exist,zwobit/exist,RemiKoutcherawy/exist,hungerburg/exist,RemiKoutcherawy/exist,wolfgangmm/exist,RemiKoutcherawy/exist,adamretter/exist,patczar/exist,windauer/exist,kohsah/exist,olvidalo/exist,wolfgangmm/exist,eXist-db/exist,jessealama/exist,jensopetersen/exist,ambs/exist,MjAbuz/exist,eXist-db/exist,shabanovd/exist,wolfgangmm/exist,ljo/exist,kohsah/exist,wshager/exist,patczar/exist,zwobit/exist,hungerburg/exist,joewiz/exist,lcahlander/exist,lcahlander/exist,dizzzz/exist,eXist-db/exist,ambs/exist,opax/exist,ambs/exist,patczar/exist,shabanovd/exist,wshager/exist,joewiz/exist,wolfgangmm/exist,hungerburg/exist,jensopetersen/exist,zwobit/exist,shabanovd/exist,opax/exist,hungerburg/exist,jessealama/exist,shabanovd/exist,MjAbuz/exist,lcahlander/exist,olvidalo/exist,dizzzz/exist,dizzzz/exist,windauer/exist,opax/exist,ambs/exist,dizzzz/exist,jessealama/exist,eXist-db/exist,jensopetersen/exist,adamretter/exist,adamretter/exist,olvidalo/exist,MjAbuz/exist,shabanovd/exist,olvidalo/exist,hungerburg/exist,jessealama/exist,ljo/exist,MjAbuz/exist,patczar/exist,joewiz/exist,ambs/exist,joewiz/exist,adamretter/exist,wshager/exist,wshager/exist,windauer/exist,wshager/exist,shabanovd/exist,dizzzz/exist,windauer/exist,ljo/exist,MjAbuz/exist,eXist-db/exist,ljo/exist,RemiKoutcherawy/exist,joewiz/exist,adamretter/exist,lcahlander/exist,lcahlander/exist,zwobit/exist,RemiKoutcherawy/exist,zwobit/exist,ambs/exist,jessealama/exist,windauer/exist,wolfgangmm/exist,opax/exist,jensopetersen/exist,ljo/exist