Page 1 of 1

Hiding certain tags in author view

Posted: Fri Mar 04, 2011 3:33 pm
by Geoff16W
I think this might be a basic question -- however --

When I work with a TEI text in "author view," the "note" tags (and the text of the note itself) really interrupt the flow of the text.

I was hoping there could be way that I could just hide the "note element" and its "text nodes" when I want to work with the body text and then unhide them when I want to see the notes again.

Thanks for your help.

Re: Hiding certain tags in author view

Posted: Fri Mar 04, 2011 4:43 pm
by Radu
Hi Jeffrey,

Oxygen relies on CSS styles to render XML in the Author page.
So you can create a CSS called (for example):
OXYGEN_INSTALL_DIR/frameworks/tei/xml/tei/css/tei_no_note.css

with the content:

Code: Select all

@import "tei_oxygen.css";

note{
display:none;
}
Then in the Oxygen Preferences->Document Type Association page edit the TEI P5 document type and in the Author tab in the CSS panel add the path to the new CSS as alternate (and also make the original CSS alternate).
Image

Then in the Author page you have a CSS drop-down toolbar button which you can use to toggle between CSS stylesheets.

Regards,
Radu