Page 1 of 1
content:attr(id) rule in docbook.css
Posted: Wed Jan 26, 2011 9:32 pm
by dcramer
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
Re: content:attr(id) rule in docbook.css
Posted: Thu Jan 27, 2011 12:55 pm
by Radu
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:
Code: Select all
@namespace xml url('http://www.w3.org/XML/1998/namespace');
co:before{
content:attr(xml|id);
}
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
Re: content:attr(id) rule in docbook.css
Posted: Thu Jan 27, 2011 3:13 pm
by dcramer
Thanks Radu. I'll keep an eye on the rss feed.
David