X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id AE358D1D2A0 for ; Thu, 20 Nov 2003 08:37:42 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 79232-10 for ; Thu, 20 Nov 2003 04:37:13 -0400 (AST) Received: from ara.zf.jcu.cz (ara.zf.jcu.cz [160.217.161.4]) by svr1.postgresql.org (Postfix) with ESMTP id 6AC15D1C96C for ; Thu, 20 Nov 2003 04:37:10 -0400 (AST) Received: by ara.zf.jcu.cz (Postfix, from userid 5770) id 1734F984A; Thu, 20 Nov 2003 09:37:05 +0100 (CET) Date: Thu, 20 Nov 2003 09:37:05 +0100 From: Karel Zak To: Peter Eisentraut Cc: pgsql-docs@postgresql.org Subject: Re: [HACKERS] XML Docbook Message-ID: <20031120083704.GA1648@zf.jcu.cz> References: <20031114094548.GE25147@zf.jcu.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/50 X-Sequence-Number: 2127 On Fri, Nov 14, 2003 at 08:16:30PM +0100, Peter Eisentraut wrote: > Karel Zak writes: > > > On Fri, Nov 14, 2003 at 10:32:10AM +0100, Peter Eisentraut wrote: > > > XML disadvantage: > > > > > > - no arbitrary parameter entities > > > > I unsure if I understand, can you show some example of this problem? > > SGML and XML allow you to disable certain parts of your document, by > writing > > ... > ]]> > > The opposite of IGNORE is INCLUDE. Think of this as a preprocessing > stage. You can also make the IGNORE/INCLUDE variable, by declaring a > "parameter entity", think of it as a variable. This is declared like > this: > > > > Then you can write > > ... > ]]> One Czech XML guru suggest me use for this "profiling". For more information see: http://www.sagehill.net/docbookxsl/Profiling.html An example: WinText and when you apply XSL template you can use template with "profile-" prefix (profile-docbook.xsl, profile-chunk.xsl) and define option profile.os="windows". The other thing are INCLUDEs, I think best way is use W3C's . The "xsltproc" support it (--xinclude option) and for others tools which doesn't support it you can use common tool "xmllint" that merge all to one temporary file: xmllint --xinclude --postvalid book.xml tmp.xml fop -xsl /path/file.xsl -xml tmp.xml -pdf book.pdf rm -f tmp.xml Comments? Karel -- Karel Zak http://home.zf.jcu.cz/~zakkr/