Hi Srikanth,

The HtmlCleanerConfiguration wants XML. CSS is not XML. Unless you find
a way to parse the CSS and make XML of it, I'm afraid you have to
include all classes by hand.
However you could turn it the other way around. Make an XML structure in
which you define your CSS classes, id's, elements and their properties
and let your front end generate real CSS from that.
Something like

<css>
        <style>
          <class>myclass</class>
          <class>search</class>
          <props>
            <![CDATA[ background:url(/images/buttons/zoek.gif)
no-repeat;
  width:42px;
  height:13px;
  border:none;
  margin-bottom: -4px; ]]>
          </props>
        </style>
        <style>
          <element>body</element>
          <props>
            <![CDATA[ width:100% ]]>
          </props>
        </style>
      </css>

Which will be transformed in your frontend as:

.myclass,.search{
  background:url(/images/buttons/zoek.gif) no-repeat;
  width:42px;
  height:13px;
  border:none;
  margin-bottom: -4px;
}
body{
 width:100%
}


Regards,

Jasha Joachimsthal 

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Srikanth NT
> Sent: maandag 31 maart 2008 14:30
> To: Hippo CMS development public mailinglist
> Subject: [HippoCMS-dev] Hippo CMS: HtmlCleanerConfiguration
> 
> Hi,
>  I have tried to use HtmlCleanerConfiguration to use my own 
> css classes. It is working fine but I have to do everything manually.
> Is it possible to give the stylesheet to include all the 
> classes mentioned in it instead of manually specifying all 
> the style classes ?
> 
> Thanks in advance.
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to