Hi!
I'm new to libcss and would like to ask for your help.

I'm creating an app (cocoa) that will render an html page in a view. The
html-file has a corresponding css-file which looks like this:

body
{
 padding: 3%;
 text-align: justify;
 font-family: "MinionPro";
}


@font-face {
 font-family: "MinionPro";
 font-weight: normal;
 font-style: normal;
 src: url('../font/MinionPro-Regular.otf');
 }

.noindent
{
        margin-left: 13.5%;
        margin-right: 5%;
        text-indent: 0%;
        margin-top: 0%;
        margin-bottom: 0%;
  font-size: 100%;
        text-align: justify;
}

.line
{
        margin-left: 5%;
        margin-right: 5%;
        text-indent: 0%;
        margin-top: 0%;
        border: solid 4px;
        color: #B3B3B3;
        margin-bottom: 10%;
  font-size: 100%;
        text-align: justify;
}

What I would like to do, is go through a list of styles and store the
information in my own data structure (NSDictionary) for easy lookup (since
I'm using cocoa anyway).
I searched the headers and the net but found no way to go through a list
(linked list, whatever) to get the properties off all styles, one after
one, without knowing their names.
Is there such a way? Or do I have to parse the html, get the names and then
look everything up via css_select?

In advance, thank you for your help.

Ruediger Rill

Reply via email to