<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks Georges, this works.<br>
      <br>
      For those interested, the complete pb cas also to change the
      list-style-type and the complete solution becomes :<br>
      <br>
      *[class~='topic/ul'] &gt; *[class~='topic/li'],<br>
      *[class~='topic/ul'] &gt; *[class~='topic/li']
      *[class~='topic/ul'] &gt; *[class~='topic/li'] {<br>
          list-style-type:hyphen;<br>
      }<br>
      <br>
      *[class~='topic/ul']:has(*[class~='topic/li'] &gt;
      *[class~='topic/ul'])  &gt; *[class~='topic/li']  {<br>
          font-weight:bold;<br>
          list-style-type:disc;<br>
      }<br>
      <br>
      li * li {<br>
          font-weight:normal;    <br>
      }<br>
      <br>
      <br>
      Pierre<br>
      <br>
      Le 06/05/2016 13:11, George Bina a écrit :<br>
    </div>
    <blockquote cite="mid:572C7BF4.7070301@oxygenxml.com" type="cite">Hi
      Pierre,
      <br>
      <br>
      Then set the bold style on the ul which has a li containing ul -
      that means replacing the CSS with:
      <br>
      <br>
      ul:has(li&gt;ul) {
      <br>
          font-weight:bold;
      <br>
      }
      <br>
      <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 13:29, Pierre Attar wrote:
      <br>
      <blockquote type="cite">Hi Georges,
        <br>
        <br>
        This work fine but does not exactely fits my requirement which
        are : as
        <br>
        soon as *one *item has a contained list *all *first level items
        ar bolded.
        <br>
        So, if 1 have a first level list of 10 items and only one has a
        sublist,
        <br>
        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>
        <blockquote type="cite">Dear Pierre,
          <br>
          <br>
          There is a CSS level 4 draft that specifies a relational
          pseudo-class
          <br>
          ":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
          <br>
          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>
      </blockquote>
      <br>
    </blockquote>
    <font face="Times New Roman, Times, serif"></font><br>
  </body>
</html>