[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: What are the steps to convert to DocBook XML?
Richard Sharpe writes: > Assuming I was interested in converting to DocBook XML, what are the steps? > > 1. How do I get my current SGML source converted? In addition to the answer "sx" you need to convert the element names to lower case and insert a declaration to pick up some general entities. This works for me: DECL := <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1//EN" "http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd"> %.xml: %.sgml osx -x lower $< > $@.tmp (sed 1q $@.tmp; echo '$(DECL)'; sed 1d $@.tmp) > $@ rm $@.tmp You may get tons of warnings about sdata not allowed in XML -- ignore them. > 2. If and when I have DocBook SML source, how to I convert it to PDF? A couple of options: * Use DSSSL -> pdfjadetex (no need for XML here). Works okay if you don't have too complicated tables. * Use DSSSL -> rtf -> word processor. YMMV, but at least you'll always get there. * Use FOP (xml.apache.org). Dubious maturity. * Use PassiveTeX. Dubious usability. -- Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC