[oXygen-user] Antwort: Addressing content from CSS in Author Mode

G. Ken Holman gkholman at CraneSoftwrights.com
Fri Oct 18 08:48:08 CDT 2013


Thank you, Patrik, for your valuable guidance!

At 2013-10-18 06:35 +0200, Patrik.Stellmann at gdv-dl.de wrote:
>for your first topic you can write
>
>     content: oxy_xpath("parent::frame/@id");
>
>(I also recommend to have a look on the page 
><http://www.oxygenxml.com/doc/ug-editor/concepts/dg-oXygen-css-extensions.html>http://www.oxygenxml.com/doc/ug-editor/concepts/dg-oXygen-css-extensions.html 
>- there are lots of nice extensions you might not even think of.)

A very helpful reference.

>Another way might be to join both selectors and use the custom 
>function oxy_label to use different styles. It would look like this 
>(not testes):
>
>     frame > title:before{
>         content: "Frame " counter(lesson_count) "." 
> counter(frame_count) ": " oxy_label(text, 
> oxy_xpath("parent::frame/@id"), font-size, .5em, color, green);
>         counter-increment: frame_count;
>     }

I think this is what I'm looking for.

Thank you, again, for taking from your time to help.  Your help will 
also add to the archive for others.

. . . . . . . . Ken


--
Public XSLT, XSL-FO, UBL & code list classes: Melbourne, AU May 2014 |
Contact us for world-wide XML consulting and instructor-led training |
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm |
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/m/ |
G. Ken Holman                   mailto:gkholman at CraneSoftwrights.com |
Google+ profile: https://plus.google.com/116832879756988317389/about |
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal |



More information about the oXygen-user mailing list