Task #1690
closed
nfd-status-http-server: serve XML
Added by Junxiao Shi over 10 years ago.
Updated over 10 years ago.
Description
Change nfd-status-http-server
to serve XML report (from nfd-status -x
).
The XML report should link to a CSS or XSLT stylesheet that displays the XML report in a human-friendly format.
That stylesheet should also be served from nfd-status-http-server
.
Files
The HTTP Accept:
header should be used to specify the content type that the client is willing to accept.
- Assignee set to Chengyu Fan
So far as I know, there is no standard xslt library in Python.
lxml might be an option, but it requires users to install another library ... Any suggestions on it?
Requiring lxml
should be acceptable, because this package exists on both supported systems.
In Ubuntu: apt-get install python-lxml
In OSX: port install py25-lxml
One other option is to serve XML report only.
There's no HTML report.
Instead, the XML report links an stylesheet (CSS) that makes it look nice by human user.
Ehm. Why do we need to produce HTML? All normal browsers will do XSLT processing and we shouldn't really do anything special. The script should just serve proper xslr and xml files.
- Subject changed from nfd-status-http-server: serve XML; generate HTML from XSLT to nfd-status-http-server: serve XML
- Description updated (diff)
uploaded the initial xslt file, please help me to improve it.
Don't upload it here. Upload it directly to gerrit, so we can test how the result is actually looking.
Junxiao, I remember you had an example of status page. Can you post the link to it here? It was looking very nice and we should take it as a template.
I see, I will modify the current one according to the sample status page and upload it to gerrit
- Status changed from New to In Progress
- % Done changed from 0 to 80
- Status changed from In Progress to Code review
- % Done changed from 80 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF