Re: Using XSLT stylesheets to process PHP documentation

From: Date: Sun, 28 Jan 2001 10:10:14 +0000
Subject: Re: Using XSLT stylesheets to process PHP documentation
References: 1 2 3 4 5  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334041@lists.php.net to get a copy of this message
Jirka Kosek wrote: > > Jim Winstead wrote: > > > of the php documentation? every xslt parser i threw at the php > > documentation plus normal walsh's stylesheets choked. > > I will inform you, if I succeed. I just succesfully converted English version of manual to single HTML file, and to multiple HTML pages with XSLT stylesheets from N. Walsh using Saxon XSLT processor. There were few XML syntax errors in source files, after correcting them, everything worked fine. Because I haven't commit access to CVS, there is a list of changes neccesary to turn English docs to correct XML: ./en/chapters/install.xml: - there was unterminated entity reference on line 10. Change "&url.mirrors" to "&url.mirrors;" ./en/appendices/migration4.xml - there were unescaped & character two times. Change it to correct entity reference &amp; (on lines 84 and 87) ./en/functions/strings.xml ./en/functions/outcontrol.xml ./en/language/variables.xml - these files contain characters from ISO-8859-1 but out of the ASCII (some umlauts, and German sharp s). XML processor implicitly uses UTF-8 encoding. Upper ISO-8859-1 characters are wrong in UTF-8 file. Easy workaround is to place correct encoding declaration as a FIRST LINE of these files: <?xml encoding="iso-8859-1"?> Simillar problems are probably present in translations to other languages. If you are interested, I can start work on porting DSSSL customizations to XSLT. In this case, I would appreciate CVS access. Jirka ----------------------------------------------------------------- Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz

« previous php.doc (#969334041) next »