xowiki::test::get_content (public)

 xowiki::test::get_content d

Defined in packages/xowiki/tcl/test/test-procs.tcl

Retrieve form a result dict of a request just the xowiki content part, denoted by the div with class 'xowiki-content' (i.e., leave out the header and footer).

Parameters:
d
Returns:
HTML with xowiki content or empty, iof not there

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) xowiki::test::get_content xowiki::test::get_content test_create_form_with_form_instance->xowiki::test::get_content acs::test::dom_html acs::test::dom_html (public) xowiki::test::get_content->acs::test::dom_html xowf::test::question_names_from_input_form xowf::test::question_names_from_input_form (private) xowf::test::question_names_from_input_form->xowiki::test::get_content xowiki::test::create_form xowiki::test::create_form (public) xowiki::test::create_form->xowiki::test::get_content

Testcases:
create_form_with_form_instance
Source code:
        acs::test::dom_html root [dict get $d body] {
            set xowiki_content [$root selectNodes {//div[@class='xowiki-content']}]
            if {$xowiki_content ne ""} {
                set xowiki_content [$xowiki_content asHTML]
            }
        }
        return $xowiki_content
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: