Default Tree View

  • 2 replies.
  • This is not yet resolved.
  • This question was started by Ashutosh Bapat.
  • Last post by Ashutosh Bapat.
Ashutosh Bapat
user
March 11th 2009
Our schema allows empty root element i.e. <root/>. And this XML is valid against the schema. But when i try to load this XML with schema in XOPUS with default tree view, i see blank view and it won't let me add any of the chlidren to root using + icon on tool bar. Also i don't see the navigation element 'root' down in status bar. Any help is appreciated.
Carl
Xopus Team
March 12th 2009
I just tried this myself, and you are absolutely correct. This is a bug in the XSL that draws the XML View most likely, and not really in Xopus, but that is me arguing semantics.

If you really want to use the XML view, which we would not recommend, you need to make an adjustment to the media/treeview/tree.xsl in the xopus folder. When you use your own XSL it will work fine. We recommend writing your own XSL to further accommodate the needs of your users. An XML view doesn't often do that.

There is a template there called drawExpanded, which only applies to elements that have children. You can copy this template and remove most of the match statement.
Ashutosh Bapat
user
March 12th 2009
Thanks Carl, this fixed my issue with XML tree view

React

HTML will be shown as HTML code.
Linebreaks and Links starting with http:// are automatically resolved