The other day I asked about possible changes in the way XSLTForms deals with external CSS documents.
Mindful of Alain's recent comment that it's always easier to deal with questions if there are small test cases, I've generated a set of small sample documents which differ in using different versions of XSLTForms (beta3RC, beta3, 1.0RC, or rev549) and in embedding different external stylesheets (test.css, which turns the background light green, or test.css.xml, which is wrapped in an XML element and which turns the background light blue). The test.css.xml stylesheet, that is, follows the convention described in the XRX wikibook at [1]; the test.css is just a normal CSS file. XSLTForms versions beta3, beta3RC, and 1.0RC all behave the same way the browser behaves if XSLTForms is not involved at all: the test.css stylesheet is consulted and turns the background green, and the test.css.xml stylesheet has no effect. (This surprises me, because it contradicts what I thought I remembered; I thought that at least one of the older releases worked with either convention.) Rev. 549, by contrast, successfully consults test.css.xml, but does not successfully consult test.css. For now, I think I can get the effect I want. But I do wonder: is this change of behavior intended, or a bug? The test files I have generated are visible at http://blackmesatech.com/2012/07/testcase/ I have checked the results with reasonably current versions of Safari, Firefox, Opera, and Chrome running under Mac OS X. Michael Sperberg-McQueen [1] http://en.wikibooks.org/wiki/XRX/XSLTForms_and_eXist#Modifying_your_CSS_to_work_with_XSLTForms -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Xsltforms-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xsltforms-support
