CSS Subject selector and form controls (selecting an element WHEN it does not have a specific child)
Posted: Tue May 03, 2022 2:15 pm
Hi,
I am trying to create a Form using Form controls where a button appears only if a specific child element is missing.
My idea is to use the subject selector (https://www.oxygenxml.com/doc/versions/ ... ector.html) and :not pseudo-selector. Unfortunately, I am obviously doing something wrong, hence I would like to ask you for help
.
I have the following code (TEI-XML):
And I want to create a button when the <respStmt> element is missing.
I have tried the following:
Unfortunately, this does not work and I don't know why (it shows the button all the time).
Any idea?
Thank you very much in advance!
Jan
I am trying to create a Form using Form controls where a button appears only if a specific child element is missing.
My idea is to use the subject selector (https://www.oxygenxml.com/doc/versions/ ... ector.html) and :not pseudo-selector. Unfortunately, I am obviously doing something wrong, hence I would like to ask you for help

I have the following code (TEI-XML):
Code: Select all
<titleStmt>
<respStmt><resp></resp><name></name><respStmt>
</titleStmt>
I have tried the following:
Code: Select all
titleStmt:after!> :not(respStmt) { }
Any idea?

Thank you very much in advance!
Jan