|
From: Adam C. <ad...@ch...> - 2002-09-23 16:36:14
|
Hi.
In the project I'm using docutils in, we've decided to convert the ReST
sources to XML (with the docutils DTD) and then use some XSLT tools to
transform this into different formats. [#]_
However, we discovered that the output from "quicktest.py -r" is not valid
XML. There are two problems with the output:
1. The text contents are not encoded / decoded in any way; everything is just
output verbatim. This is a problem if the input file is ISO-8859-1 and XML
is supposed to be UTF-8. Some --input-encoding and --output-encoding
options would be nice.
2. The "xml:space" attribute is used incorrectly. In the output one can find
"xml:space=1"; the only valid values from xml:space are "default" and
"preserved".
What's the best way to fix these issues? Perhaps a dedicated XML writer is
necessary (I hope not...)?
.. [#] The reason for this, as opposed to writing a new docutils writer, is
mainly because we have a developer that has a lot of experience with
XML/XSLT and no experience with docutils or Python: we believe that
this aproach will give us results faster, basically.
---
Adam Chodorowski <ad...@ch...>
Om du skiter kulor har du magproblem. Ät mer fibrer som asbest och
knäckebröd.
-- Brad S / Datormagaizin
|