Re: html transformations

From: Date: Tue, 16 Oct 2001 13:48:48 +0000
Subject: Re: html transformations
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969338024@lists.php.net to get a copy of this message
"Tomas V.V.Cox" wrote: > 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). Turning it into CDATA wouldn't help, because on the output all < and > in CDATA will be replaced by &lt; and &gt; in resulting HTML file. However you can surround higlighted blocks of HTML code by some special tag and use dirty XSLT attribute disable-output-escaping="yes" to pass HTML code untouched. ----------------------------------------------------------------- Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz

« previous php.doc (#969338024) next »