NAME DHTML::ypXmlTree SUMMARY use DHTML::ypXmlTree; # Please, note the use of underbars. # ypXmlTree uses hypens, but Perl doesn't # play nicely with them. So, it you see a # hypen in the JS docs, think underbar # when you get to Perl-land. # There are accessor methods for all of the # XSLT parameters defined in ypXmlTree docs. # You can define their value in the constructor # or with an accessor. my $tree = DHTML::ypXmlTree->new( "img_path" => "/youngpup/", "js_path" => "/youngpup/", ); $tree->toggle_open("toggleDL.gif"); $tree->toggle_closed("toggleDL.gif"); $tree->toggle_downlevel("toggleDL.gif"); $tree->default_folder_icon("folder1.gif"); $tree->default_folder_open_icon("folder2.gif"); $tree->selection_style(3); $tree->bullet("bullet.gif"); my $f1 = $tree->folder(name=>"weblogs",title=>"Weblogs"); my $f1a = $f1->folder(name=>"mtl",title=>"Montreal"); $f1a->file(name=>"aaronland", href=>"http://aaronland.net"); print $tree->as_xml(); print $tree->as_html(); DESCRIPTION This package implements an OOP-ish intereface for generat- ing, and transforming, the XML documents used in Aaron Boodman's ypXmlTree DHTML widget. PUBLIC METHODS DHTML::ypXmlTree->new(%args) $pkg->as_xml(%args) $pkg->as_html(%args) PRIVATE METHODS &_render(@args) &_render_attrs(@args) &_render_params(@args) &_render_file(@args) &_render_folder(@args) VERSION 0.1 AUTHOR Aaron Straup Cope SEE ALSO the XML::YAGenerator manpage the XML::LibXML manpage the XML::LibXSLT manpage http://www.youngpup.net/?request=/components/ypXml- Tree.xml&xpath=/project/description LICENSE Copyright 2001, Aaron Straup Cope. This is free software, you may use it and distribute it under the same terms as Perl itself.