Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@www.apache.org Received: (qmail 72241 invoked from network); 29 Dec 2003 11:45:53 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Dec 2003 11:45:53 -0000 Received: (qmail 96918 invoked by uid 500); 29 Dec 2003 11:45:51 -0000 Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 96869 invoked by uid 500); 29 Dec 2003 11:45:51 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 96857 invoked from network); 29 Dec 2003 11:45:51 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 29 Dec 2003 11:45:51 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AavqI-00052n-00 for ; Mon, 29 Dec 2003 12:45:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: forrest-dev@xml.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AavqH-00052f-00 for ; Mon, 29 Dec 2003 12:45:49 +0100 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AavqH-0007v3-00 for ; Mon, 29 Dec 2003 12:45:49 +0100 From: Nicola Ken Barozzi Subject: Skin colors from skinfconf into CSS Date: Mon, 29 Dec 2003 12:42:27 +0100 Lines: 108 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Here is an example CSS file (taken from inst.css of tigris-style skin) that is generated from skinconf. /* $Id: inst.css,v 1.1 2003/12/22 09:54:41 nicolaken Exp $ */ #cn { background-image: url(../); display: block; height: 17px; width: 138px; } #poweredby { background-image: url(../); display: block; height: 38px; width: 102px; } #sc { background-image: url(../); display: block; height: 25px; width: 138px; } To see it working, just transform skinconf.xml with it, and on the test site you will get: /* $Id: inst.css,v 1.1 2003/12/22 09:54:41 nicolaken Exp $ */ #cn { background-image: url(../images/group.png); display: block; height: 17px; width: 138px; } #poweredby { background-image: url(../); display: block; height: 38px; width: 102px; } #sc { background-image: url(../images/project.png); display: block; height: 25px; width: 138px; } With XSLT this is IMHO as easy as it gets. I could do a thing though. I can make an xml version of it and xslt it into becoming like the above xslt: /* $Id: inst.css,v 1.1 2003/12/22 09:54:41 nicolaken Exp $ #cn { background-image: url(../group-logo); display: block; height: 17px; width: 138px; } #poweredby { background-image: url(../host-logo); display: block; height: 38px; width: 102px; } #sc { background-image: url(../project-logo); display: block; height: 25px; width: 138px; } What do you think, should I use the plain XSLT (which seems simple enough for me) or go with the simplified version? -- Nicola Ken Barozzi nicolaken@apache.org - verba volant, scripta manent - (discussions get forgotten, just code remains) ---------------------------------------------------------------------