Campbell, Dennis wrote:
> I find myself working with huge XML documents, and always clicking 'collapse 
> all' when I start.  Is there an option or switch to always collapse all when 
> opening a document?  I did not see any under Options.

There is no option or switch to do that.

You must specify this in the CSS style sheet by using the 
"collapsed:yes" property value. See 
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s06s03.html#collapsibleblocks

It is possible to do so without modifying the configurations bundled 
with XXE. For that, you must customize these configurations like 
described in 
http://www.xmlmind.com/xmleditor/config_faq.html#customize_docbook

The FAQ uses DocBook as an example but the same approach should work for 
any other class of documents.

DocBook example:
---------------

If I copy mydocbook.xxe:

---
<?xml version='1.0' encoding='ISO-8859-1'?>
<configuration name="DocBook"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>

   <include location="docbook/docbook.xxe" system="true" />

   <css name="DocBook" location="mydocbook.css" />
</configuration>
---

and mydocbook.css:

---
@import 
url(file:///home/hussein/src/xxe/distrib/config/docbook/css/docbook.css);

set,
book,
part,
reference,
chapter,
preface,
article,
sect1,
sect2,
sect3,
sect4,
section,
appendix,
figure,
example,
table {
     collapsed: yes;
}
---

to ~/.xxe2/config/ (C:\Documents and Settings\hussein\xxe2\config\ on 
Windows), all my docbook documents will be opened collapsed.

If you want to try the above customizations, do not forget to replace 
url(file:///home/hussein/src/xxe/distrib/config/docbook/css/docbook.css) 
by something like 
url(file:///C:/Program%20Files/XMLmind_XML_Editor/config/docbook/css/docbook.css)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mydocbook.xxe
Type: text/xml
Size: 391 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20031010/bec22eb6/attachment.xml
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mydocbook.css
Type: text/css
Size: 232 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20031010/bec22eb6/attachment.css
 

Reply via email to