Hello list,
please consider these XML snippets:

<e/>some text<f/>

<e/>some text<h>blah blah</h>some other text<f/>

<e/><f/>

now apply these CSS selectors to them:

e ~ f matches all

e + f matches the first and the third

There's no CSS selector to match ONLY the third.

But i have a use case for that: sometimes i have endnote markers that
immediately follow footnote markers.
Since -- in my layout -- footnotes have letter markers and endnotes
numbers, it results in something like "c30" in superscript.
It would be nice putting a comma between them ("c,30") or a thin space,
but the "e + f" selector does not discriminate between:

blah blah<footnote-ref idref="c"/><endnote-ref idref="30"/>

and

blah blah<footnote-ref idref="d"/> some other text <endnote-ref
idref="31"/>

it would match both, but it's only the first one that i want to catch.

I'd suggest a non-standard "e ++ f" operator.
Would you prefer a lpath expression (which one)?

Greetings,
Massi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to