Forum How do I...?

"failed to parse all CSS rules"

paulalbert
Hi,

I just installed Prince and am trying to get the hang of it. Here's the command I'm using:

/Users/paulalbert/prince/bin/prince http://mpkb.org/doku.php/home:1 -o /Users/paulalbert/Desktop/345.pdf


Two problems:
1. I get a ton of errors (see below), but more importantly...
2. A number of CSS declarations in my print stylesheet are not being respected. For example:

div.dokuwiki h2 {
font-size:160%;
font-family: Georgia;}


I know my code isn't perfectly W3C valid, but what gives? What am I missing? Thanks for any help.

Paul


prince: http://mpkb.org/doku.php/home:1:370: error: ID marshall_protocol already defined
prince: http://mpkb.org/doku.php/home:1:415: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:419: error: ID resources_for_physicians_and_physicians already defined
prince: http://mpkb.org/doku.php/home:1:439: error: ID background_and_scientific_rationale_for_the_therapy already defined
prince: http://mpkb.org/doku.php/home:1:445: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:456: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:463: error: ID fnt__1 already defined
prince: http://mpkb.org/doku.php/home:1:477: error: ID fnt__2 already defined
prince: http://mpkb.org/doku.php/home:1:485: error: ID fnt__3 already defined
prince: http://mpkb.org/doku.php/home:1:485: error: ID fnt__4 already defined
prince: http://mpkb.org/doku.php/home:1:501: error: ID immunopathology already defined
prince: http://mpkb.org/doku.php/home:1:507: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:518: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:529: error: ID fnt__5 already defined
prince: http://mpkb.org/doku.php/home:1:529: error: ID fnt__6 already defined
prince: http://mpkb.org/doku.php/home:1:529: error: ID fnt__7 already defined
prince: http://mpkb.org/doku.php/home:1:544: error: ID patient_eligibility_and_prerequisites already defined
prince: http://mpkb.org/doku.php/home:1:570: error: ID safety_considerations already defined
prince: http://mpkb.org/doku.php/home:1:576: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:588: error: ID non-mp_treatments already defined
prince: http://mpkb.org/doku.php/home:1:594: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:653: error: ID food_and_drink already defined
prince: http://mpkb.org/doku.php/home:1:659: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:667: error: ID photosensitivity already defined
prince: http://mpkb.org/doku.php/home:1:672: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:703: error: ID fnt__8 already defined
prince: http://mpkb.org/doku.php/home:1:706: error: ID laboratory_tests already defined
prince: http://mpkb.org/doku.php/home:1:712: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:725: error: ID vitamin_d_metabolites already defined
prince: http://mpkb.org/doku.php/home:1:731: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:738: error: ID fnt__9 already defined
prince: http://mpkb.org/doku.php/home:1:740: error: ID fnt__10 already defined
prince: http://mpkb.org/doku.php/home:1:756: error: ID measures_of_blood_pressure already defined
prince: http://mpkb.org/doku.php/home:1:762: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:774: error: ID fnt__11 already defined
prince: http://mpkb.org/doku.php/home:1:774: error: ID fnt__12 already defined
prince: http://mpkb.org/doku.php/home:1:783: error: ID medications already defined
prince: http://mpkb.org/doku.php/home:1:799: error: ID fnt__13 already defined
prince: http://mpkb.org/doku.php/home:1:811: error: ID olmesartan_benicar already defined
prince: http://mpkb.org/doku.php/home:1:817: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:867: error: ID safety_of_olmesartan already defined
prince: http://mpkb.org/doku.php/home:1:873: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:885: error: ID fnt__14 already defined
prince: http://mpkb.org/doku.php/home:1:893: error: ID fnt__15 already defined
prince: http://mpkb.org/doku.php/home:1:903: error: ID antibiotics already defined
prince: http://mpkb.org/doku.php/home:1:909: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:937: error: ID fnt__16 already defined
prince: http://mpkb.org/doku.php/home:1:937: error: ID fnt__17 already defined
prince: http://mpkb.org/doku.php/home:1:941: error: ID fnt__18 already defined
prince: http://mpkb.org/doku.php/home:1:952: error: ID starting_a_patient_on_the_marshall_protocol already defined
prince: http://mpkb.org/doku.php/home:1:977: error: ID antibiotic_combinations_and_dosing_strategies already defined
prince: http://mpkb.org/doku.php/home:1:1017: error: ID adding_a_second_antibiotic already defined
prince: http://mpkb.org/doku.php/home:1:1043: error: ID adding_a_third_antibiotic already defined
prince: http://mpkb.org/doku.php/home:1:1080: error: ID managing_immunopathology already defined
prince: http://mpkb.org/doku.php/home:1:1085: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:1096: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:1125: error: ID in_case_of_emergency already defined
prince: http://mpkb.org/doku.php/home:1:1131: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:1158: error: ID length_of_the_protocol already defined
prince: http://mpkb.org/doku.php/home:1:1164: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:1197: error: ID endpoints_of_the_protocol already defined
prince: http://mpkb.org/doku.php/home:1:1201: error: ID plugin_include__home:patients:mp_duration already defined
prince: http://mpkb.org/doku.php/home:1:1237: error: ID stopping_the_protocol already defined
prince: http://mpkb.org/doku.php/home:1:1242: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:1255: error: ID stopping_antibiotics_only already defined
prince: http://mpkb.org/doku.php/home:1:1264: error: ID stopping_antibiotics_and_olmesartan already defined
prince: http://mpkb.org/doku.php/home:1:1280: error: Unexpected end tag : p
prince: http://mpkb.org/doku.php/home:1:1284: error: ID notes_comments already defined
prince: http://mpkb.org/doku.php/home:1:1340: error: ID references already defined
prince: http://mpkb.org/doku.php/home:1:1345: error: ID fn__1 already defined
prince: http://mpkb.org/doku.php/home:1:1348: error: ID fn__2 already defined
prince: http://mpkb.org/doku.php/home:1:1349: error: ID fn__9 already defined
prince: http://mpkb.org/doku.php/home:1:1352: error: ID fn__3 already defined
prince: http://mpkb.org/doku.php/home:1:1355: error: ID fn__4 already defined
prince: http://mpkb.org/doku.php/home:1:1358: error: ID fn__5 already defined
prince: http://mpkb.org/doku.php/home:1:1361: error: ID fn__6 already defined
prince: http://mpkb.org/doku.php/home:1:1364: error: ID fn__7 already defined
prince: http://mpkb.org/doku.php/home:1:1367: error: ID fn__8 already defined
prince: http://mpkb.org/doku.php/home:1:1369: error: ID fn__10 already defined
prince: http://mpkb.org/doku.php/home:1:1372: error: ID fn__11 already defined
prince: http://mpkb.org/doku.php/home:1:1375: error: ID fn__12 already defined
prince: http://mpkb.org/doku.php/home:1:1378: error: ID fn__13 already defined
prince: http://mpkb.org/doku.php/home:1:1380: error: ID fn__14 already defined
prince: http://mpkb.org/doku.php/home:1:1383: error: ID fn__15 already defined
prince: http://mpkb.org/doku.php/home:1:1386: error: ID fn__16 already defined
prince: http://mpkb.org/doku.php/home:1:1389: error: ID fn__17 already defined
prince: http://mpkb.org/doku.php/home:1:1392: error: ID fn__18 already defined
prince: http://mpkb.org/doku.php/home:1:1504: error: Unexpected end tag : a
prince: http://mpkb.org/lib/exe/css.php?s=print&t=fwright: warning: failed to parse all CSS rules
mikeday
In the style sheet at http://mpkb.org/lib/exe/css.php?s=print&t=fwright there is an unnecessary "}" character after this rule:
div.dokuwiki a:hover,div.dokuwiki a:active{color:#000;text-decoration:none !important;}}

There is also a redundant @CHARSET "UTF-8"; declaration midway in the file, but that is not causing any problems.
paulalbert
That's it. Thanks, Mike! :)