Re: html transformations

From: Date: Tue, 16 Oct 2001 13:09:40 +0000
Subject: Re: html transformations
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969338020@lists.php.net to get a copy of this message
On Tuesday 16 October 2001 12:22, Hartmut Holzgraefe wrote: > cox@idecnet.com wrote: > > I want to write a parser over the docbook html output to highlight > > the php code in the pear manual. My problem is that now the docbook > > tag: > > > > <programlisting role="php"> > > > > is converted to only: > > > > <PRE CLASS="programlisting"> > > > > with not difference between one language and an another. How can I > > (or start looking at) convert the role="php" to something like <PRE > > CLASS="programphp">? > > well, the "RIGHT THING"(tm) would be to extend the modular style > sheets (DSSSL or XSL, whatever you like best) to do so when > generating HTML from XML in the first place instead of modifying the > generated HTML Sure, but I don't want to implement highlight_string() in XSL :-) Sorry I don't know in deep those technologies. For me is very easy to parse the HTML. Or perhapst here is a "get the contents of this tag from the ouptut of that program". Other ugly idea could be to parse directly the DocBook xml and transform this tag in CDATA (really the html highlighted string). Any way, any answer for my first question? Tomas V.V.Cox

« previous php.doc (#969338020) next »