Re: colorize.php

From: Date: Fri, 25 Jan 2002 10:04:49 +0000
Subject: Re: colorize.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-4147@lists.php.net to get a copy of this message
On Fri, 25 Jan 2002 09:01:13 +0100, Sebastian Bergmann wrote: > But when I do > > saxon de.xml stylesheets/de.html-chunked.xsl > php -Cq colorize.php output/de/ > > for instance, there's no change to the files in output/de/, although > colorize.php says it modifiled xx files. > > I'm using the DocBook XSL Stylesheets 1.48 to produce the HTML files, > listings are marked up in the XML as in peardoc: > > <programlisting role="php"> > ... > </programlisting> > > What am I doing wrong here? We have patched our DSSL stylesheet some time ago in order to make this work. Please have a look at http://cvs.php.net/diff.php/peardoc/html-common.dsl.in?ws=0&r1=1.2&r2=1.3 &ty=u to see the diff of the changes to html-common.dsl. I don't have any idea how to apply that to the XSL version of Docbook, but perhaps it helps you a bit. Short explanation: The stylesheet basically transforms all <programlisting role="php"> into <pre class="php"> in the HTML version. colorize.php then grabs them and highlights the content between this tag. - Martin

« previous php.pear.dev (#4147) next »