I really need your assistance in converting XPath to CSS. I have this code snippet and XPath expression:
/descendant::p/parent::*/child::p[position()=1]
... The selected elements will be (B D F H)
<?xml version="1.0" ?>
<book>
<title>A</title>
<p>B</p>
<p>C</p>
<chapter>
<p>D</p>
<p>E</p>
<section>
<p>F</p>
<section>
<title>G</title>
<p>H</p>
</section>
<p>I</p>
</section>
</chapter>
Could you please guide me on how to translate this XPath expression to CSS?