Working with Subject Scheme Maps as Nested Lists

I'm experimenting with using subject scheme maps to capture outlines of subjects as part of some training planning I'm doing. To facilitate this I've whipped up a little CSS style sheet that renders the subject definitions as a bulleted list items. However, I don't get any collapse/expand handles in the edit view--I would really like to be able to expand and collapse the list in the main editor window (rather than using the outline view). Is there a way to do this through the CSS? Here is the CSS as I've got it so far: /* CSS to show a subject scheme map as nested lists*/ subjectdef { list-style-type: disc; display: block; } subjectdef > topicmeta { display: list-item; margin-left: 12pt; margin-top: 12pt; } subjectdef > subjectdef > topicmeta { display: list-item; margin-left: 24pt; } subjectdef > subjectdef > subjectdef > topicmeta { display: list-item; margin-left: 36pt; } subjectdef > subjectdef > subjectdef > subjectdef > topicmeta { display: list-item; margin-left: 48pt; } subjectdef > subjectdef > subjectdef > subjectdef > subjectdef > topicmeta { display: list-item; margin-left: 60pt; } shortdesc { display: block; margin-top: 1em; margin-left: 12pt; } /* End of CSS */ Thanks, Eliot ————— Eliot Kimber, Owner Contrext, LLC http://contrext.com <http://contrext.com/> -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.reallysi.com www.rsuitecms.com

On Tuesday, 2014-01-28, at 20:28 CET, Eliot Kimber wrote:
I would really like to be able to expand and collapse the list in the main editor window (rather than using the outline view). Is there a way to do this through the CSS?
Hi Eliot, You just need to use a few of oxygen’s custom CSS properties: -oxy-foldable -oxy-folded -oxy-not-foldable-child See <http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/dg-folding-elements.html> for the details. Regards, Roger

Hi, Right, something like this:
*[class~="subjectScheme/subjectdef"]{ -oxy-foldable:true; -oxy-folded:true; }
if you want the subjectScheme to be both foldable and folded by default. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/29/2014 1:33 PM, Roger Sheen wrote:
On Tuesday, 2014-01-28, at 20:28 CET, Eliot Kimber wrote:
I would really like to be able to expand and collapse the list in the main editor window (rather than using the outline view). Is there a way to do this through the CSS?
Hi Eliot,
You just need to use a few of oxygen’s custom CSS properties:
-oxy-foldable -oxy-folded -oxy-not-foldable-child
See <http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/dg-folding-elements.html> for the details.
Regards,
Roger
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Thanks--I was able to figure this out from the help (although I must say, searching on the help does not always return the most useful entry--there are different topics related to CSS and folding, but only one talks about the CSS implementation details and the other doesn't link to the one I wanted. Definitely room for improvement in the help organization and content.) For some reason I didn't see my post until it was too late to report my success following RTFM :-) I also figured out how to use -oxy-nonfolding-child to maintain the navtitle of each subjectdef on collapse. I didn't see a way, however, to preserve the navtitle but still hide the sibling <shortdesc> in that case. Cheers, E. -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.reallysi.com www.rsuitecms.com On 1/29/14, 7:41 AM, "Oxygen XML Editor Support" <support@oxygenxml.com> wrote:
Hi,
Right, something like this:
*[class~="subjectScheme/subjectdef"]{ -oxy-foldable:true; -oxy-folded:true; }
if you want the subjectScheme to be both foldable and folded by default.
Regards, Radu
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 1/29/2014 1:33 PM, Roger Sheen wrote:
On Tuesday, 2014-01-28, at 20:28 CET, Eliot Kimber wrote:
I would really like to be able to expand and collapse the list in the main editor window (rather than using the outline view). Is there a way to do this through the CSS?
Hi Eliot,
You just need to use a few of oxygen’s custom CSS properties:
-oxy-foldable -oxy-folded -oxy-not-foldable-child
See
<http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/dg-folding-elem ents.html> for the details.
Regards,
Roger
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Eliot,
Definitely room for improvement in the help organization and content.
I can't argue with you here. Do you still remember what topic you found that should have had a related link to the topic which described the CSS folding extensions? Do you use the Help facility which comes inside Oxygen or our online help? http://www.oxygenxml.com/doc/ug-editor/#topics/introduction.html Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/29/2014 5:12 PM, Eliot Kimber wrote:
Thanks--I was able to figure this out from the help (although I must say, searching on the help does not always return the most useful entry--there are different topics related to CSS and folding, but only one talks about the CSS implementation details and the other doesn't link to the one I wanted. Definitely room for improvement in the help organization and content.)
For some reason I didn't see my post until it was too late to report my success following RTFM :-)
I also figured out how to use -oxy-nonfolding-child to maintain the navtitle of each subjectdef on collapse. I didn't see a way, however, to preserve the navtitle but still hide the sibling <shortdesc> in that case.
Cheers,
E.

I normally use the built-in help (Help -> Help under OS X). If I search on "folding" the 6th hit is "Folding in CSS stylesheets", which is actually about applying folding to the CSS while editing, not configuring folding through CSS. The next topic in the list of hits is "Folding elements: -oxy-...", so while that's the topic I needed the title didn't immediately match the search I had in my head "Using CSS to control folding". Of course, I'm used to just quickly going to the first relevant search hit, without looking more carefully.... If I search on "CSS folding" then none of the top 10 hits appear to be directly relevant. I will also say, while we're dumping on help, that the actual formatting within the help viewer is pretty weak--insufficient vertical space, etc. It could look a lot nicer I must say. Cheers, E. -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.reallysi.com www.rsuitecms.com On 1/30/14, 2:09 AM, "Oxygen XML Editor Support" <support@oxygenxml.com> wrote:
Hi Eliot,
Definitely room for improvement in the help organization and content.
I can't argue with you here. Do you still remember what topic you found that should have had a related link to the topic which described the CSS folding extensions? Do you use the Help facility which comes inside Oxygen or our online help?
http://www.oxygenxml.com/doc/ug-editor/#topics/introduction.html
Regards, Radu
Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
On 1/29/2014 5:12 PM, Eliot Kimber wrote:
Thanks--I was able to figure this out from the help (although I must say, searching on the help does not always return the most useful entry--there are different topics related to CSS and folding, but only one talks about the CSS implementation details and the other doesn't link to the one I wanted. Definitely room for improvement in the help organization and content.)
For some reason I didn't see my post until it was too late to report my success following RTFM :-)
I also figured out how to use -oxy-nonfolding-child to maintain the navtitle of each subjectdef on collapse. I didn't see a way, however, to preserve the navtitle but still hide the sibling <shortdesc> in that case.
Cheers,
E.
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Eliot, We've had previous complains about our offline help framework (JavaHelp) for MAC OSX and Linux which is primitive and has problems with the search and the visual layout. On Windows we are using CHM which is much better when searching and when rendering the content. We are considering using something else for MAC OSX but as we are a Java application our options are limited. In the meantime, you should try to consult our online help when searching for something, it is much better: http://www.oxygenxml.com/doc/ug-editor/ Maybe we should also add a link to our online help in our Help menu. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/30/2014 4:22 PM, Eliot Kimber wrote:
I normally use the built-in help (Help -> Help under OS X).
If I search on "folding" the 6th hit is "Folding in CSS stylesheets", which is actually about applying folding to the CSS while editing, not configuring folding through CSS. The next topic in the list of hits is "Folding elements: -oxy-...", so while that's the topic I needed the title didn't immediately match the search I had in my head "Using CSS to control folding". Of course, I'm used to just quickly going to the first relevant search hit, without looking more carefully....
If I search on "CSS folding" then none of the top 10 hits appear to be directly relevant.
I will also say, while we're dumping on help, that the actual formatting within the help viewer is pretty weak--insufficient vertical space, etc. It could look a lot nicer I must say.
Cheers,
E.
participants (3)
-
Eliot Kimber
-
Oxygen XML Editor Support
-
Roger Sheen