There's nothing to "solve"; without the complete XML doc & the XSL
stylesheet, there's no way to know if in fact everything is being parsed as
expected. I don't know if it's CDATA, xsl:text, a strip-spaces directive,
etc. And ... I'd expect anyone using XML & XSL to double check and
re-reference all their books before posting a problem (Sablotron is pretty
well tested; I don't think it's the problem ...)

Then, after exhausting my brain and building the smallest possible set of
code that reproduces my problem ...

I'd submit it to a XML list.

Of couse, the sample script to me looks perfectly valid, since HTML isn't
required to have newlines and of course newlines within text blocks aren't
preserved anyway ...

Mark C.
-----Original Message-----
From: Daniele Baroncelli [mailto:ubimmc93@;libero.it]
Sent: Sunday, November 03, 2002 2:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: XSLT Sablotron output


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?

"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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to