Support for external CSS stylesheet support
"James Kent" <[email protected]>
| Newsgroups | gmane.comp.gnome.lib.librsvg.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to determine whether librsvg supports external CSS stylesheets. For example, the simple example from the SVG 1.1 spec shown below does not apply the stylesheet properly in the GTK. The rectangle is drawn with a default black fill style. I'm using the versions of GTK and librsvg that come with Ubuntu 5.0.4. I believe this is GTK 2.6.8 and librsvg 2.2. If I put the CSS info inline in the SVG file, it works properly. Are external CSS files supported in librsvg? Thanks Jim Kent S/W Architect PalmSource [email protected] __________ File mystyle.css rect { fill: red; stroke: blue; stroke-width: 3 } SVG file referencing mystyle.css <?xml version="1.0" standalone="no"?> <?xml-stylesheet href="mystyle.css" type="text/css"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="10cm" height="5cm" viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg" version="1.1"> <rect x="200" y="100" width="600" height="300"/> </svg> ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642