<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'] > *[class~='topic/li'],<br>
*[class~='topic/ul'] > *[class~='topic/li']
*[class~='topic/ul'] > *[class~='topic/li'] {<br>
list-style-type:hyphen;<br>
}<br>
<br>
*[class~='topic/ul']:has(*[class~='topic/li'] >
*[class~='topic/ul']) > *[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>ul) {
<br>
font-weight:bold;
<br>
}
<br>
<br>
<br>
Best Regards,
<br>
George
<br>
--
<br>
George Cristian Bina
<br>
<oXygen/> 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>
<?xml version="1.0" encoding="UTF-8"?>
<br>
<!DOCTYPE html>
<br>
<?xml-stylesheet type="text/css" href="test.css"?>
<br>
<html xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a>>
<br>
<head>
<br>
<title></title>
<br>
</head>
<br>
<body>
<br>
<br>
<ul>
<br>
<li>normal</li>
<br>
<li>Bold!!!
<br>
<ul>
<br>
<li>1</li>
<br>
<li>2</li>
<br>
</ul>
<br>
</li>
<br>
<li>Normal again</li>
<br>
<br>
</ul>
<br>
</body>
<br>
</html>
<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>
<oXygen/> 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>