Re: XSLT and DocBook

From: Date: Thu, 07 Jun 2007 13:05:47 +0000
Subject: Re: XSLT and DocBook
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-256271@lists.php.net to get a copy of this message
Larry Garfield wrote:
Hi all. I have a DocBook source[1] that I am processing into XHTML using the DocBook XSL[2] toolchain. That is, XSLT. I'm not doing a huge amount of customization on top of the default setup, either. Right now, I'm using the standard XSLT Java toolchain; Xalan, Xerces, XIncluder, and all of the various other Apache projects[3]. The problem is, well, it's Java, which means the classpaths and build environment and such break if I so much as sneeze at the wrong time. I'd love to be able to replace it with PHP's XSL parser[4], since I actually know PHP and its chances of breaking on every other Tuesday are slimmer, but I don't know if it has all of the functionality I'd need. Specifically, I need multi-file output and support for <xinclude: /> directives. Right now I'm using the Xalan multi-file output extensions, but I'm happy to switch to something else if it means eliminating the huge gobs of touchy Javascript I have. Does anyone know if that's doable with PHP's XSLT support (circa PHP 5.2, I run the server so can install whatever I need)? Has anyone tried doing this before? It's all offline processing, so performance isn't a huge issue. Thanks. [1] http://www.docbook.org/tdg/en/html/docbook.html [2] http://www.sagehill.net/docbookxsl/ [3] http://xml.apache.org/ [4] http://us.php.net/manual/en/ref.xsl.php You might get help from comp.text.xml
-- _____________________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/

« previous php.general (#256271) next »