No one replied yet, so I suppose no one was able to solve this. By the way, is there anyone that actually experienced the same situation?
Cheers Daniele "Daniele Baroncelli" <[EMAIL PROTECTED]> wrote in message news:20021102212518.34728.qmail@;pb1.pair.com... > Hi guys, > > I have typed a simple script to test the Sablotron module recently > installed. > I found out that the HTML is output all in one line, without newlines, which > is very annoying. > Anyone can tell me if this is a bug of the module, or I have to specify > something somewhere? > > Here is the script on the server, where you can watch the result: > http://www.rockit.it/redazione/sixth/prova.php > > Below you can find my PHP, XML and XSL files. > > > Cheers > > Daniele > > > ========== > > PHP file > ---------- > > > <?php > > // Allocate a new XSLT processor > $xh = xslt_create(); > > // call the XSLT processor directly > xslt_process($xh, 'prova.xml', 'prova.xsl', 'prova.html'); > > // output the result > readfile('prova.html'); > > xslt_free($xh); > > ?> > > ========== > > XML file > ----------- > > <?xml version="1.0"?> > <me> > <name>John Doe</name> > <address>94, Main Street, Nowheresville 16463, XY</address> > <tel>738 2838</tel> > <email>[EMAIL PROTECTED]</email> > <url>http://www.unknown_and_unsung.com/</url> > </me> > > =========== > > XSL file > --------- > > <?xml version="1.0"?> > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > <xsl:template match="/"> > > <html> > <head> > </head> > <body> > <h1>Contact information for <b><xsl:value-of select="me/name" /></b></h1> > > <h2>Mailing address:</h2> > <xsl:value-of select="me/address" /> > > <h2>Phone:</h2> > <xsl:value-of select="me/tel" /> > > <h2>Email address:</h2> > <xsl:value-of select="me/email" /> > > <h2>Web site URL:</h2> > <xsl:value-of select="me/url" /> > > </body> > </html> > > </xsl:template> > > </xsl:stylesheet> > > ========== > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php