Page 1 of 1

Can get "Message Panel" to appear in tree editor

Posted: Fri May 26, 2006 11:45 pm
by drpj
The documentation clearly shows a panel at the bottom of the Tree Editor window that I believe (by process of elimination) is the Message Panel. There is a dot under the Tree Editor panel which to me indicates that I should be able to drag that border up and reveal the panel below... or resize the panel. When I drag that dot, sure enough, a dark horizontl line moves up and follows the mouse. But when I release mouse the line disappears and no message panel appears. I've check the documentation and search the forum. Sorry if I missed something

Posted: Mon May 29, 2006 10:30 am
by sorin_ristache
Hello,

The message panel appears only if there are messages to be displayed. It is reduced to zero size automatically when it contains no message so that the editing space is not occupied by an empty and unnecessary panel. In this empty state you are not allowed to resize it. If you run an XPath query in the XPath toolbar or the action Validate Document reports validation errors the message panel is expanded and you can resize it.

Regards,
Sorin

shortcut for seeing contents of element in tree view

Posted: Tue May 30, 2006 4:36 am
by drpj
Thanks, Sorin. I guess my question, then, is, how can I display the content of an element without having to click several times to expand it in tree view?

Here's what my document looks like:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE thesaurus SYSTEM "thesaurus.dtd">
<?xml-stylesheet type="text/xsl" href="thesaurus2html.xsl" ?>
<thesaurus>

<h0>
<name>PERCEPTUAL PROPERTIES</name>
<sn>global and regional perceptual properties of the image</sn>
<h1>
<name>Color Type</name>
<h2>
...etc.

In the tree view, it looks like this:

Image

I'd like to be able to see the text "Color Type" without having to expand three levels. I hope this is clear. I've modified my xsl document to look like this:

Code: Select all

<xsl:template match="h1">
<table><tr><td bgcolor="white">
<font color="blue">=<xsl:apply-templates/></font>
</td></tr></table>
</xsl:template>

<xsl:template match="h2">
<table><tr><td bgcolor="white"><font color="lightgrey"><xsl:text> </xsl:text></font>
<font color="red">==<xsl:apply-templates/></font>
</td></tr></table>
</xsl:template>
Which results in a web page that looks like this:

Code: Select all


PERCEPTUAL PROPERTIES
Scope Note: global and regional perceptual properties of the image
=Color Type
==black and white
I'd like to see a view similar to this in a drag and drop editor so that I can rearrange the order of the items.

Thanks very much for you help.

Peter
Dr. Peter Jörgensen
Director of Academic and Research Technologies
College of Information
Florida State University
Tallahassee, FL 32306
850-644-4139 (work)
850-574-0776 (home)
pjorgensen@ci.fsu.edu
pjorgensen@mac.com(AIM)

Re: shortcut for seeing contents of element in tree view

Posted: Tue May 30, 2006 10:33 am
by sorin_ristache
Hello,
drpj wrote:I'd like to be able to see the text "Color Type" without having to expand three levels.
Press the Expand All toolbar button or select the action with the same name on the popup menu available on any tree node.
drpj wrote:I'd like to see a view similar to this in a drag and drop editor so that I can rearrange the order of the items.
That is not available yet. Instead of that you can drag and drop tree nodes in other locations of the tree in the Tree Editor perspective.

Regards,
Sorin

Posted: Tue May 30, 2006 3:02 pm
by drpj
sorin wrote.

Press the Expand All toolbar button or select the action with the same name on the popup menu available on any tree node.
I only want to expand certain items, not the entire list.

thanks,

Posted: Tue May 30, 2006 3:09 pm
by sorin_ristache
Select the element for which you want to expand all descendants by clicking on it in the tree and then execute the Expand All action. Only the selected element will be expanded.

Regards,
Sorin