Re: Debian Reference --> XML conversion plan
Osamu Aoki <osamu@debian.org> écrivait :
« Hi,
«
« I have new automated XML conversion plan :-)
«
« I knew debiandoc2dbxml tool but that was not automatic enough for me.
Hi Osamu,
I just played with debiandoc2dbxml in cvs debian-doc:
For "apt-howto.en.sgml",
1) debiandoc-tidy apt-howto.en.sgml
2) debiandoc2dbxml -b apt-howto.en.sgml
Emacs: SGML validation finished at Sat Oct 1 19:25:30
ok!
For "developers-reference.sgml"
debiandoc-tidy -e dynamic.ent
debiandoc2dbxml -b -s developers-reference.sgml
Problem:
nsgmls:developers-reference.xml:4832:29:E: value of attribute "id" must be a single token
nsgmls:developers-reference.xml:4878:31:E: value of attribute "id" must be a single token
Emacs: SGML validation exited abnormally with code 1 at Sat Oct 1 20:05:21
In xml, you must not put an "-" in "id" like that: <section id="bpp-origtargz">.
So the fix is easy.
For maint-guide.sgml
debiandoc-tidy -e default.ent
debiandoc2dbxml -b -s maint-guide.sgml
Emacs: SGML validation finished at Sat Oct 1 21:39:10
Ok!
Isn't it a good tool :-)
Regards,
--
Philippe Batailler
Reply to: