Customizing author view
Oxygen general issues.
-
- Posts: 2
- Joined: Fri Aug 09, 2013 4:48 pm
Customizing author view
Hello,
I'm currently trying to customize the author view for a TEI5-XML file.
In my XML file, I have an element with the following attributes:
While I was able to make appear all <form>-Tags with the attribute "hyperlemma" bold and italic by adding
to .\Oxygen XML Editor 15\frameworks\tei\xml\tei\css\tei.css,
I wasn't able to address a second attribute at the same time, because
doesn't work.
What do I have to add to the .css file in order to make <form>-Tags of type="hyperlemma" AND xml:lang="grc" boldface?
I would appreciate any hint in the right direction.
Thanks,
Susanne.
I'm currently trying to customize the author view for a TEI5-XML file.
In my XML file, I have an element with the following attributes:
Code: Select all
<form type="hyperlemma" xml:lang="grc" xml:id="hl_grc-4">
Code: Select all
form[type="hyperlemma"] {
display: inline;
font-style: italic;
font-weight:bold;
}
I wasn't able to address a second attribute at the same time, because
Code: Select all
form[type="hyperlemma"][xml:lang="grc"] {
display: inline;
font-style: italic;
font-weight:bold;
}
What do I have to add to the .css file in order to make <form>-Tags of type="hyperlemma" AND xml:lang="grc" boldface?
I would appreciate any hint in the right direction.
Thanks,
Susanne.
-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Customizing author view
Hi Susanne,
Actually there was a similar situation on the TEI users list a couple of months ago:
http://listserv.brown.edu/archives/cgi- ... atches&z=4
In the tei.css after all the imports you should add this declaration:
and then modify the CSS selector to be something like:
So instead of ":" you will need to use "|" in the selector which matches a certain attribute with a certain prefix.
This is in accordance with the CSS 3 namespaces specification:
http://www.w3.org/TR/css3-namespace/
Regards,
Radu
Actually there was a similar situation on the TEI users list a couple of months ago:
http://listserv.brown.edu/archives/cgi- ... atches&z=4
In the tei.css after all the imports you should add this declaration:
Code: Select all
@namespace xml "http://www.w3.org/XML/1998/namespace";
Code: Select all
form[type="hyperlemma"][xml|lang="grc"]
This is in accordance with the CSS 3 namespaces specification:
http://www.w3.org/TR/css3-namespace/
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service