[oXygen-user] authormode css, first-child pseudo class

Andreas Wagner Andreas.Wagner at em.uni-frankfurt.de
Mon Oct 28 09:17:41 CDT 2013


Dear list,

I am currently putting together a framework for our (TEI-xml) project.  
In this project, we are dealing with texts where every new line is  
marked by a <lb/> tag. With an author mode css stylesheet, I am  
reflecting this with a linebreak '\A' and a newline char ('?')  
inserted via the lb:before pseudo-class.
Now I would like to suppress this mechanism for the first occurrence  
in a containing <p>, <head> or <item> element and have it executed  
only for the second and subsequent line beginnings.

Without success, I have tried various things like this one:

lb{
   display:inline;
   -oxy-display-tags:none;
}
p lb:before, item lb:before, head lb:before{
   content:"\A? ";
}
p:first-child:before, item:first-child:before, head:first-child:before{
   content:"? ";
}

The suppression part mentioned above does not work. Can anyone shed  
some light on this, please?

Thank you and best regards,

Andreas


PS. Here is a sample document:

<TEI xmlns="http://www.tei-c.org/ns/1.0">
   <teiHeader>
       <fileDesc>
          <titleStmt>
             <title>Title</title>
          </titleStmt>
          <publicationStmt>
             <p>Publication Information</p>
          </publicationStmt>
          <sourceDesc>
             <p>Information about the source</p>
          </sourceDesc>
       </fileDesc>
   </teiHeader>
   <text>
       <body>
          <div>
             <head>
                <lb/>CAPUT I.</head>
             <list>
                <head>
                   <lb/>De intentione et partitione huius libri.</head>
                <item>
                   <lb/>Declaratur intentio operis, ut haec pars Theolo<lb
                   break="no"/>giae practicae sit de fine hominis, et  
de medijs ne<lb
                   break="no"/>cessarijs.</item>
             </list>
          </div>
       </body>
   </text>
</TEI>




More information about the oXygen-user mailing list