Jeff Hooker wrote: > > I've seen some evidence of discussions about how to allow authors to hide > content in their documents, but I can't find the discussions themselves. > > What would a good approach be for allowing authors to do this? In my case, my > authors are using Docbook 5 and are sourcing multiple publications out of > each document. I'd like to extend them ability to dynamically update the css > to hide content marked with certain attribute values. Any pointers on where > to start would be appreciated. >
--> It would help if you could explain *why* you want to allow authors to hide content in their documents. Generally this kind of question is related to the DocBook XSL style sheet feature called ``profiling'' (See http://www.sagehill.net/docbookxsl/Profiling.html ) --> The obvious answer is to add custom CSS rules like the following ones: [a] Use display: hidden; Example: foo { display: block; } foo[bar="gee"] { display: hidden; } [b] OR use replaced content. (I prefer not to use "display: hidden;" because, in the general case, this makes XMLmind XML Editor somewhat non-intuitive to use.) foo { display: block; } foo[bar="gee"] { content: url("hidden_foo.png"); } [c] OR use collapsed content (when the element to be styled is potentially collapsible). foo { display: block; collapsible: yes; collapsed-content: url("collapsed_foo.gif"); } foo:before { content: collapser() " This is a foo!"; display: block; margin: 5 auto; text-align: center; } foo[bar="gee"] { collapsed: yes; } See http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/collapsible_blocks.html

