<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Georges,<br>
      <br>
      This work fine but does not exactely fits my requirement which are
      : as soon as <b>one </b>item has a contained list <b>all </b>first
      level items ar bolded.<br>
      So, if 1 have a first level list of 10 items and only one has a
      sublist, then all the ten items need to be bolded.<br>
      <br>
      Any idea for that ?<br>
      <br>
      Pierre<br>
       <br>
      <br>
      Le 06/05/2016 12:14, George Bina a écrit :<br>
    </div>
    <blockquote cite="mid:572C6E85.2030101@oxygenxml.com" type="cite">Dear
      Pierre,
      <br>
      <br>
      There is a CSS level 4 draft that specifies a relational
      pseudo-class ":has()"
      <br>
      <a class="moz-txt-link-freetext" href="https://drafts.csswg.org/selectors-4/#relational">https://drafts.csswg.org/selectors-4/#relational</a>
      <br>
      which can be used to provide the functionality that you need.
      <br>
      The good news is that oXygen implements this, so for example, if
      you have an XHTML document like
      <br>
      <br>
      &lt;?xml version="1.0" encoding="UTF-8"?&gt;
      <br>
      &lt;!DOCTYPE html&gt;
      <br>
      &lt;?xml-stylesheet type="text/css" href="test.css"?&gt;
      <br>
      &lt;html xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>&gt;
      <br>
          &lt;head&gt;
      <br>
              &lt;title&gt;&lt;/title&gt;
      <br>
          &lt;/head&gt;
      <br>
          &lt;body&gt;
      <br>
      <br>
              &lt;ul&gt;
      <br>
                  &lt;li&gt;normal&lt;/li&gt;
      <br>
                  &lt;li&gt;Bold!!!
      <br>
                      &lt;ul&gt;
      <br>
                          &lt;li&gt;1&lt;/li&gt;
      <br>
                          &lt;li&gt;2&lt;/li&gt;
      <br>
                      &lt;/ul&gt;
      <br>
                  &lt;/li&gt;
      <br>
                  &lt;li&gt;Normal again&lt;/li&gt;
      <br>
      <br>
              &lt;/ul&gt;
      <br>
          &lt;/body&gt;
      <br>
      &lt;/html&gt;
      <br>
      <br>
      then the test.css referred in the file needs to contain
      <br>
      <br>
      li:has(ul) {
      <br>
          font-weight:bold;
      <br>
      }
      <br>
      <br>
      in order to render the second list item with bold font.
      <br>
      <br>
      Best Regards,
      <br>
      George
      <br>
      --
      <br>
      George Cristian Bina
      <br>
      &lt;oXygen/&gt; XML Editor, Schema Editor and XSLT Editor/Debugger
      <br>
      <a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a>
      <br>
      <br>
      On 06/05/16 12:40, Pierre Attar wrote:
      <br>
      <blockquote type="cite">Hi,
        <br>
        <br>
        For a specific application, I need to parameterize the Oxygen
        editor in
        <br>
        order to have a different display of list items depending on
        contained
        <br>
        lists.
        <br>
        <br>
        More precisely, a level 1 item is bold if there are level 2
        items
        <br>
        contained in the list.
        <br>
        Otherwise, it is regular.
        <br>
        <br>
        I know how to manage that while transforming for publishing bu I
        don't
        <br>
        know how to reprensent that only using Oxygen CSS selectors.
        <br>
        <br>
        <br>
        Any ideas ?
        <br>
        <br>
        Pierre
        <br>
        _______________________________________________
        <br>
        oXygen-user mailing list
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
        <br>
        <a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
        <br>
        <br>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>