Re: new class XML_CSSML

From: Date: Sat, 27 Apr 2002 11:28:25 +0000
Subject: Re: new class XML_CSSML
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5829@lists.php.net to get a copy of this message
Hi cool idea :) But here my 2 cents: > <?xml version="1.0"?> > <CSSML> > <Style filterInclude="main"> first, I don't like Firstletter-Upercase element-names (but as said, it's just my personal opinion). second, why not using namespaces? (that's not so important, but could prevent some clashes in the future..) > <Selector class="header">div</Selector> > <Selector class="header">td</Selector> > <Declaration property="background-color">red</Declaration> > <Declaration property="color">blue</Declaration> > <Declaration property="border" browserInclude="not(ns4)">1px > solid > black</Declaration> mmh. i would prefer a more xsl-stylish approach, in den meaning of <cssml:if test="browserInclude != ns4"> <Declaration property="border">1px solid black</Declaration> </cssml:if> choose/when/otherwise and alike would then allow more flexible stuff, than with your approach (unless i missed something) that's about it :) chregu

« previous php.pear.dev (#5829) next »