Testing ("xml.text")

Denotes difference fom previous test line


Tests of xml.text

1 {{ xml.text(wiki.search("tag:test", 10, "-date"), "/", nil, false) }}

1 SandboxTagCloud TestTagPageTagPageUser:michaTestTESTINGMy new test pageUser:brizbenTesting 1-2-3


                      

2 {{ xml.text(wiki.search('tag:"test"', 10, "-date"), "/", nil, false) }}

2 SandboxTagCloud TestTagPageTagPageUser:michaTestTESTINGMy new test pageUser:brizbenTesting 1-2-3


                      

3 {{ xml.text(wiki.search('tag:"test"', 10,  "-date"), "/", nil, true) }}

3 <html><body><div class="wiki-search"><ul><li><a rel="internal" href="http://developer.mindtouch.com/User:SteveB/Sandbox">Sandbox</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:Brig/TagCloud_Test">TagCloud Test</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:Brig/TagPage">TagPage</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:Brig/TestPages/TagPage">TagPage</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:micha">User:micha</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:wencke/Test">Test</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:vicvicwong">TESTING</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:Jsmith99/My_new_test_page">My new test page</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:brizben">User:brizben</a></li><li><a rel="internal" href="http://developer.mindtouch.com/User:Aurora/Testing_1-2-3">Testing 1-2-3</a></li></ul></div></body></html>


Tests of wiki.search

1 {{ wiki.search("tag:test", 10, "-date") }}

1


                      

2 {{ wiki.search('tag:"test"', 99, "-date") }}

2


Tests of string.matches

                  

1 {{ string.matches( xml.text(wiki.search('tag:"test"', 10,  "-date"),
"/", nil, true), "(\\User:[a-zA-Z0-9]+)") }}  

1 [ "User:SteveB" ]  


                  

2 {{ string.matches( xml.text(wiki.search('tag:"test"', 10,  "date"),
"/", nil, true), "(\\User:[a-zA-Z0-9]+)") }}  

2 [ "User:erakauf" ]  


    

3 {{ string.matches( xml.text(wiki.search('tag:"test"', 10,  "date"),
"/", nil, true), "\\User:[a-zA-Z0-9]+") }}  

3 [ ]

      


      

4 {{ string.matches(xml.text(wiki.search('tag:"test"', 10,  "date"),
"/", nil, true), "(\\User:[a-zA-Z0-9]+)") }}  

4 [ ]


 


      

5 {{ string.match( xml.text(wiki.search('tag:"test"', 10,  "date"),
"/", nil, true), "(\\User:[a-zA-Z0-9]+)") }}  

5


The Full Function

    

1. {{ var search_results=wiki.search('tag:"test"', 10, "-date"); var results_text=xml.text(search_results,
"/", nil, true); var path_list=string.matches(results_text, "(\\User:[a-zA-Z0-9]+)"); foreach(var page_path in path_list) { wiki.page(page_path) } }}

1.


TwitterCounter for @bjorg

Reset Root password on VM

Sync VM clock: sudo ntpdate -s time.nist.gov

 

Assigned Issues

See Bugs by Release.

In Progress (1 issues, 1 days left)

Bugs (37 issues, 18.5 days left)

Not Started (2 issues, 5 days left)

Future/Unassigned Bugs (2 issues)

 

 Missing Documentation

MindTouch SID Template

sid://mindtouch.com/{year}/{month}/{service-name}

Terminology

OO
SODA
Class Blueprint
Instance Service
Method Feature

 

   


2. {{ var search_results=wiki.search('tag:"test"', 10, "-date"); var results_text=xml.text(search_results,
"/", nil, true); var path_list=string.match(results_text, "(\\User:[a-zA-Z0-9]+)"); foreach(var page_path in path_list) { wiki.page(page_path) } }}

   

2.

/content/body/div[4]/p[5]/span, str is not valid; expected list or map or xml or nil: line 1, column 194 (click for details)

 


                               

Go to Top

                      

Tag page (Edit tags)
    You must login to post a comment.