content:attr(id) rule in docbook.css
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 163
- Joined: Sat Aug 28, 2010 1:23 am
content:attr(id) rule in docbook.css
I notice that the rule for the <co/> element in docbook.css is to show the value of the id attribute before the element, yet I don't see the id displayed. However, for other elements, the same function "attr()" does work. I've tried changing the rule for co:before to "content:attr(xml|id);" but that doesn't help.
Any idea what's up?
Thanks,
David
Code: Select all
co:before{
content:attr(id);
}
Thanks,
David
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: content:attr(id) rule in docbook.css
Hi David,
By default the "xml" prefix is reserved and thus the Oxygen Author should match it by default, without specifying the namespace.
So this construct:
content:attr(xml|id);
is correct but it does not yet work in Oxygen.
We will fix this problem and probably also include the fix in an Oxygen 12.1 maintainance build kit.
The RSS will be updated when this happens:
http://www.oxygenxml.com/rssBuildID.xml
The workaround:
1) In the CSS declare the binding for the "xml" prefix like:
2) In the XML file declare on the root element the binding for the "xml" prefix: xmlns:xml="http://www.w3.org/XML/1998/namespace"
Regards,
Radu
By default the "xml" prefix is reserved and thus the Oxygen Author should match it by default, without specifying the namespace.
So this construct:
content:attr(xml|id);
is correct but it does not yet work in Oxygen.
We will fix this problem and probably also include the fix in an Oxygen 12.1 maintainance build kit.
The RSS will be updated when this happens:
http://www.oxygenxml.com/rssBuildID.xml
The workaround:
1) In the CSS declare the binding for the "xml" prefix like:
Code: Select all
@namespace xml url('http://www.w3.org/XML/1998/namespace');
co:before{
content:attr(xml|id);
}
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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