Re: [Xsltforms-support] CSS not applied when using XSLTForms
Brought to you by:
alain-couthures
From: C. M. Sperberg-M. <cm...@bl...> - 2012-07-27 15:18:30
|
On Jul 26, 2012, at 9:19 PM, Conal Tuohy wrote: > It's convenient, if you have to author CSS documents in a well-formed XML file, to be able to retain CSS validity. My thoughts exactly. > In order to hide CSS from HTML 3 user agents, the CSS grammar allows SGML comment delimiters, which it ignores. So with a bit of finagling you can write polyglot xml/css using just a tricky prolog and epilog, e.g. > > <!--/*--><css><![CDATA[*/ > > /* Plain old css goes in here, & and < are all good */ > > h1 { > color: green; > } > > /*]]></css><!--*/--> That is one of the most ingenious, twisted, sick and brilliant hacks I've seen in a while. Thank you for that! Michael -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |