CSS and XML

maxwell <[email protected]> Wed, 05 Nov 2014 18:32:11 -0500
Newsgroups gmane.comp.web.elinks.user
Message-ID <[email protected]>
I'm trying to display an XML file in elinks.  I've written a CSS file to 
do this (it converts a DocBook <table> to an HTML <table>), and it works 
ok in the usual browsers.  However, it does not work in elinks; I just 
get the raw XML structure.

I've tried three different ways of linking to the CSS file.  The first 
uses the standard XML idiom:
<?xml-stylesheet type="text/css" 
href="file:///home/mmaxwell/Data/Generic/Debugger.css"?>

The second uses an HTML <link>:
<link rel="stylesheet" 
href="file:///home/mmaxwell/Data/Generic/Debugger.css">

And the third way uses my ~/.elinks/elinks.conf file:
set document.css.stylesheet = "/home/mmaxwell/Data/Generic/Debugger.css"
(I've confirmed that this stylesheet gets read by setting a non-default 
color in it.)

I'm guessing that elinks' support of CSS just isn't sufficient.  But the 
stylesheet is pretty simple (good, since I don't "speak" CSS); the only 
CSS constructs it calls for are block, table, solid, table-row-group, 
table-row, table-cell, and center.  I can provide the CSS file if that 
would help.

Should this work?  If so, any suggestions for debugging, or work-arounds 
(short of using xslt to pre-convert the XML to HTML!)?

(BTW, some of the links to this mailing list on the elinks website are 
broken...in particular, the "subscribe" link.)

    Mike Maxwell
    University of Maryland
-- 
http://lists.linuxfromscratch.org/listinfo/elinks-users
Unsubscribe: See the above information page