'Twas brillig, and Tom Sparks at 17/02/09 15:17 did gyre and gimble:
I have stopped XSLT from rendering out all the text
but I am no further a long getting XSL stylescript to work
I have been reading w3schools (http://www.w3schools.com/xsl/default.asp )
and XML 1.1 bible 3rd edition ( http://www.amazon.com/XML-Bible-Elliotte-Rusty-Harold/dp/0764549863 )
I am at a lost still!!
It looks more or less OK to me...
Infact I tried it via the command line:
My XML:
<?xml version="1.0" ?>
<vehicle><meta><title>Hellooooooo</title></meta></vehicle>
The XSL is yours from the previous post:
$ xsltproc test.xsl test.xml
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>vehicle: Hellooooooo</title>
</head>
<body><pre>
vehicle: Hellooooooo</pre></body>
</html>
Works fine.
Are you sure you are not doing something odd in the calling code? e.g.
make sure you are calling transformToXML() properly. Perhaps slap all
your files somewhere so we can download and test for you.
Col
--
Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/
Day Job:
Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
Mandriva Linux Contributor [http://www.mandriva.com/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php