CSS Syntax Error on @footnote

Having trouble installing Oxygen? Got a bug to report? Post it all here.
fsteimke
Posts: 82
Joined: Tue Jan 01, 2013 3:19 pm

CSS Syntax Error on @footnote

Post by fsteimke »

I am writing a CSS Stylesheet for PDF Chemistry. My @page rule is:

Code: Select all

@page {
    size: A4;
    @bottom-center {
        content: counter(page);
        color: #606060;
        font-size:0.9rem;
    }
    @footnote {
        content: leader(solid);
        color: silver;
    }
}
It works as expected. But when i run a Format Document (pretty-print the whole CSS Document) i get a Syntax Error which reads:

Code: Select all

System-ID: /home/frank/oxygenxml/xsltng-kosit/print-css/oxygen-chemistry.css
Fehlerlevel: error
Beschreibung: Encountered " <ATKEYWORD> "@footnote "" at line 22, column 5.
Was expecting one of:
    "}" ...
    ";" ...
    <IDENT> ...
    "@top-left-corner" ...
    ... some more lines ... 
    "@right-bottom" ...
    "@footnotes" ...
The expected keyword for formatting is @footnotes (plural), while CSS Syntax only allows @footnote (singular).
This happens with a fresh Oxygen 26.1 on Linux.
Greetings, Frank
julien_lacour
Posts: 601
Joined: Wed Oct 16, 2019 3:47 pm

Re: CSS Syntax Error on @footnote

Post by julien_lacour »

Hello Frank,

We are aware of this issue and it has already been addressed in Oxygen 27.0, the format and indent function will work then.
I will notify this thread once the new version will be available.

Regards,
Julien
Mircea
Posts: 142
Joined: Tue Mar 25, 2003 11:21 am

Re: CSS Syntax Error on @footnote

Post by Mircea »

Hello Frank,

The new Oxygen 27.0 was now released.
Please give it a try and see if the fix is suitable for your case.

Regards,
Mircea.
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply