vladimirn wrote:
Hi all,
i was wondering whats the best approach to do next.
I have an xml file delivered from service of my partner. On my web server
(windows) i have xslt files used for xml transformation.
Those files are getting bigger, so i have request to cash them and use
cashed. I was
, so why is there a need to cache them?
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
View this message in context:
http://www.nabble.com/PHP-XSLT-caching-tp20173225p20186499.html
Sent from the PHP
vladimirn wrote:
I have one simple question, actually i am interested in your point of view.
Is there any sense in caching xslt itself? If so, then why? If not, then
again why? :)
I think that there is no sense, and that xslt output should be cached.
What do you think?
From your original
:
http://www.nabble.com/PHP-XSLT-caching-tp20173225p20186499.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I can see that caching the output would make sense, caching
ideas :)
LOL sure, if someone already have a good working solution i would appreciate
any link or code :0)
Greetings,
V
--
View this message in context:
http://www.nabble.com/PHP-XSLT-caching-tp20173225p20173225.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General
vladimirn wrote:
Hi all,
i was wondering whats the best approach to do next.
I have an xml file delivered from service of my partner. On my web server
(windows) i have xslt files used for xml transformation.
Those files are getting bigger, so i have request to cash them and use
cashed. I was
://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
--
View this message in context:
http://www.nabble.com/PHP-XSLT-caching
vladimirn wrote:
Thank you Col
I will go into Zend_Cache as you suggested.
One more thing- does Zend_Cache saces data into file or use a server memory?
As I said in my original mail, but perhaps wasn't clear, Zend_Cache can
support file, memcache, APC and other backends.
Col
--
Colin
vladimirn wrote:
i was wondering whats the best approach to do next.
I have an xml file delivered from service of my partner. On my web
server (windows) i have xslt files used for xml transformation.
Those files are getting bigger, so i have request to cash them and use
cashed.
Your xslt
I believe PHP 5 support for XML is pretty darn good.
If you're in PHP 4, forget it...
There's like 3 different XML libraries, all with warts, and I'm pretty
sure none of them support the fancy stuff you need.
On Thu, June 7, 2007 1:02 am, Larry Garfield wrote:
Hi all. I have a DocBook
Yes, I said PHP 5.2 specifically. :-)
I did find this:
http://us2.php.net/manual/en/function.dom-domdocument-xinclude.php
So I'm figuring that XInclude is safe, assuming I give it enough RAM. (It's
not a small dataset.) I'm not sure how multi-file output would work, though,
given the API.
Hi all. I have a DocBook source[1] that I am processing into XHTML using the
DocBook XSL[2] toolchain. That is, XSLT. I'm not doing a huge amount of
customization on top of the default setup, either. Right now, I'm using the
standard XSLT Java toolchain; Xalan, Xerces, XIncluder, and all of
Larry Garfield wrote:
Hi all. I have a DocBook source[1] that I am processing into XHTML using the
DocBook XSL[2] toolchain. That is, XSLT. I'm not doing a huge amount of
customization on top of the default setup, either. Right now, I'm using the
standard XSLT Java toolchain; Xalan,
So...
I have this XML feed.
And I have this page that already implements this XML feed.
And I'm supposed to duplicate that functionality.
I'm sitting here with this mess of loops and arrays and whatnot trying
to transform the XML into the HTML.
Now, I know that XSLT is supposed to be able to
Perhaps, though, there is some magical PHP WYSIWYG
tool out there to compare the HTML and the XML and
make an XSLT for me?...
It's not PHP based, but XMLSpy will do exactly what
you need.
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
$xml = blah balh blah;
$tournaments = explode(/tournament, $xml);
$tournaments = array_slice($tournaments, 0, 3); //maybe 4
$xml = implode(/tournament, $tournaments);
$xml .= \n/xmlfeed;
Crude, but effective Captain -- Spock
On Wed, May 3, 2006 5:40 am, Dave Goodchild wrote:
Hi all, maybe
Why would I want to mess with the xml file like that? I use it in other
places. The actual xslt solution I came up with (with assistance) is the
preferred one.
On 04/05/06, Richard Lynch [EMAIL PROTECTED] wrote:
$xml = blah balh blah;
$tournaments = explode(/tournament, $xml);
$tournaments =
Hi all, maybe slightly off list but I AM using php and Sablotron to generate
xslt.
I have a live poker games feed that takes the following format:
?xml version=1.0 encoding=utf-8?xmlfeed
tournament
tid10035522/tid
nameTexas Holdem/name
gameTexas Holdem Poker/game
buyin5/buyin
Hi all, maybe slightly off list but I AM using php and Sablotron to
generate
xslt.
I have a live poker games feed that takes the following format:
?xml version=1.0 encoding=utf-8?xmlfeed
tournament
tid10035522/tid
nameTexas Holdem/name
gameTexas Holdem Poker/game
Thanks for our help. Tried both methods and I get this:
*Warning*: Sablotron error on line 31: XML parser error 4: not well-formed
(invalid token) in
*/home/stevemas/public_html/dg/xslt/xslt_processor.php*on line
*14*
On 03/05/06, T.Lensselink [EMAIL PROTECTED] wrote:
Hi all, maybe slightly
And I used this:
xsl:template name=results
xsl:for-each select=tournament
xsl:if test=position() 4
table id=top3table cellspacing=0
tr class=oddthTid/thtdxsl:value-of
select=tid //td/tr
trthType/thtdxsl:value-of
And I used this:
xsl:template name=results
xsl:for-each select=tournament
xsl:if test=position() 4
table id=top3table cellspacing=0
tr class=oddthTid/thtdxsl:value-of
select=tid //td/tr
Thank you very much for your generous and prompt help. The stylesheet I am
now using looks like this:
?xml version=1.0 encoding=ISO-8859-1?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/xmlfeed
html
head
titleResults of XSL
Thank you very much for your generous and prompt help. The stylesheet I am
now using looks like this:
?xml version=1.0 encoding=ISO-8859-1?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:template match=/xmlfeed
html
head
Hi
Can anyone help me with this issue?
http://marc.theaimsgroup.com/?l=php-generalm=113456345526736w=2
Tobi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
My ISP upgraded from 5.0.3 to 5.1.1. Since then, XSLT (at least my
script which uses it) doesn't work anymore.
The first error message on
http://www.pinkjuice.com/hayashi/materials/
is
Warning: XSLTProcessor::importStylesheet()
[function.importStylesheet]: Undefined variable in
If I run an xslt processor on some xml w/ PHP in it, the closing '?' gets
removed:
tr
tdUsername:/td
?php if ($set != 0 ($set 0x01) == 0) {
echo td bgcolor=\#ff\;
} else {
echo td;
}
echo /tdinput type=\username\ name=\username\ value=\ . $username
. \/;
Question.. I'm using PHP 5.0.4 with the built-in libxslt-based xsl
extension. I'm passing XSL parameters to the XSL processor like so:
$xslt_proc-setParameter('', 'param_test', some test value);
My question is, is it *required* to declare this parameter in the XSL
stylesheet with:
xsl:param
On 6/9/05, John Browne [EMAIL PROTECTED] wrote:
Question.. I'm using PHP 5.0.4 with the built-in libxslt-based xsl
extension. I'm passing XSL parameters to the XSL processor like so:
$xslt_proc-setParameter('', 'param_test', some test value);
My question is, is it *required* to declare
Hi everyone,
I have been very intrigued by the way Gentoo.org offers its
documentation. The documents are stored using a series of XML files and
are delivered via XSLT via some ruby scripts.
Are there any similar frameworks, solutions availble for the PHP world?
Devraj
--
Devraj Mukherjee
I'm presently reading Using XSLT and have created their examples
using PHP and sablotron to render HTML from XML and an XSL template.
I understand the value of using XSLT to render XML, but what is the
advantage or reasons for generating XML from a database and rendering
it to HTML using XSLT
hi
wondering if anyone can help me with this one... im running php 4.3.9 on
windows 98. im tryin to get the xslt functions working. i have follwed
the instructions here:
http://sniptools.com/vault/sablotron-xslt-php-apache-on-windows-and-a-basic-xslt-tutorial.htm
i still am not getting them
Hi,
In php5.0.0 I can use next select syntax:
xsl:variable name=menus select=php:function('Menu::createXML')/menus/
but in php5.1.0-dev I see this warning
Warning: XSLTProcessor::transformToDoc() [function.transformToDoc]: Invalid type in
/mnt/data/www/html/web/Includes/Theme.php on line 117
Don't know if this is the best place to post.
I'm also not shure if this is a problem with the PHP implementation or
it's something a bug in libxslt.
But here's the deal.
(I use php5.0.0RC1 for testing on winXP)
This works:
xsl:if test=position() $start
xsl:call-template
I am guesing that I have installed something incorrectly. I am trying to
use the function xslt_create(). I installed php v5 Beta 4 successfully. but
when I try to use the function xslt_create() I get the following error:
Fatal Error: Call to undefined function xslt_create()
I have a test php
I'm trying to get the XSLT extension working, and all I can get it to
do is echo the source XML back to me. I'm using sample markup from
O'Reilly's XSLT book as my XML and XSL files, as follows:
hello.xml:
?xml version=1.0?
greeting
Hello, world!
/greeting
hello.xsl:
xsl:stylesheet
I'm trying to automatically convert DocBook XML files into PDFs using
PHP and the XSLT extension. First step is to convert them into FO, but
I'm running into trouble with this script:
?php
$xslt = xslt_create();
$xml = 'my_docbook_file.xml';
$xsl = '/usr/share/sgml/docbook/stylesheet
hi
my hosting service doesnt provide xslt module for php. but i need to use
xslt in php. what can i do ?
thnx
Gurvinder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello php-general,
I have a problem with XSLT Transformation. I have in one page HTML
that is in my php page and one $result - where i transform one XSLT
file. When php show HTML - no problems but when i print $result
after HTML iyt can be read. In XSLT and XML i use UTF-8 ecnoding
Hi,
Do you mean that the XSL style sheet is printed instead of the
transformation result?
if that's the case, i have faced the same problem, and at that time it was
because of the xsl: namespace check it to verify it's correct, there's a
deprecated on of it that you may be using and sablotron
I cannot seem to get RH8 to to compile XSLT support. Has anyone else
gotten this to work? Anyone with the resulting php-xslt rpm?
Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hey all
I'm using xslt_process(), and noticed that it add a meta just after the
head :
meta http-equiv=Content-Type content=text/html; charset=UTF-8
Where can i change it, or desactivate it ?
thanks
Hatem
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I'm using the xslt capabilities in PHP 4.2.2 and running into an odd
problem. I'm transforming an XML document which has a DOCTYPE
declaration referencing an external DTD.
!DOCTYPE RootNode SYSTEM http://my.host.org/foo.dtd;
When I have xslt_process() attempt to transform the XML document, with
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
I was able to pass parameters to the xsl stylesheet like this:
?php
$args = array();
$params[test] = parameter_to_pass;
// create XSLT processor
$xh = xslt_create();
// call xslt processor
// Process the document
$result =
I have been impressed with using the xslt functions in php in that it
gives you the ability to separate content from presentation. Now I am
looking to streamline this technique.
Typically I either take xml that is in a file or generated by a class
from a sql query and transform it with an xsl
On 24 Sep 2002 10:22:41 -0500, you wrote:
What I am looking for is either a way to use includes in xsl stylesheets
or something like Fusebox layouts for xml/xsl. Thank you
You may get better answers if you post this in comp.text.xml...
--
PHP General Mailing List (http://www.php.net/)
To
I'm wondering if there is a way to include a query string parameter in an xsl
stylesheet.
I have a script that does this:
xslt_process($xsltprocessor,$xml,$xsl);
I'd like to include the value of a variable passed to this script via a query
string (eg. xmlscript.php?p=3 ), whereby the value
I am trying to find out a way I can pass a variable that is basically
an XML document to xslt_process and make it all work. My script
works if I have:
$xp = xslt_create();
$result = xslt_process($xp, 'test.xml', 'test.xsl');
however, if I try to do:
$xp = xslt_create();
$result =
On Thu, 5 Sep 2002, Devin Atencio wrote:
I am trying to find out a way I can pass a variable that is basically
an XML document to xslt_process and make it all work. My script
$xmldata = a whole boatload of well-formed XML;
$xsltArgs = array( '/_xml' = $xmlStr );
$xp = xslt_create();
$result =
Is there a soul who has the xslt extensions compiled with php 4.2.2,
sablotron 0.95 and expat 1.95.4 and working on Linux who is willing to
give me some tips?
I have tried the suggestions here:
http://www.php.net/manual/en/ref.xslt.php
here:
http://phpfaq.info/#id98
and the patches here:
Hi,
Wednesday, August 21, 2002, 8:26:29 AM, you wrote:
G Is there a soul who has the xslt extensions compiled with php 4.2.2,
G sablotron 0.95 and expat 1.95.4 and working on Linux who is willing to
G give me some tips?
G I have tried the suggestions here:
G
Hello,
I am using php 4.2.0 and apache 2.0 on win95. I am facing some problems with
xslt extension.
Nobody replied at [EMAIL PROTECTED]
Problem is that xslt processor is unable to find the xml and xsl files.
Files are in the same directory as the php file and document_root is
Hello,
I am using php 4.2.0 and apache 2.0 on win95. I am facing some problems with
xslt extension.
Noone replied at [EMAIL PROTECTED]
Problem is that xslt processor is unable to find the xml and xsl files.
Files are in the same directory as the php file and document_root is
e:\wwwroot\newsite.
Can anyone tell me why this is not working?
-- snip of
xslt_processor.php
$doc = new_xmldoc(1.0);
$root = $doc-add_root(debug);
$head = $root-new_child(broswer, 1);
$head-set_attribute(key, UserAgent);
I am using XSLT functions in PHP to transform a string (whose data is a
string of XML) into another string. Ideally, the second string will
consist of PHP code. I would like this outputted PHP code to be
executed within the same script as the that which performs this
transformation.
Here
-4948
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 2:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] XSLT; XML = PHP code
I am using XSLT functions in PHP to transform a string (whose data is a
string of XML) into another string. Ideally
On Thursday, March 28, 2002, at 04:52 PM, Darren Gamble wrote:
Good day,
To have PHP evaluate string contents as an expression, use eval().
Thanks for the pointer, I have never used this function before. I'm not
sure what it means by as with any function that outputs directly to the
.
Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 3:20 PM
To: Darren Gamble
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP
On Friday, March 15, 2002, at 06:46 PM, Edward Tanguay wrote:
I have this hosted at my ISP. The phpinfo() shows that they have:
Linux 2.4.3
PHP Version 4.0.4pl1
Sablotron XSLT support: enabled
Which annotations are you refering to?
Ask them if they will upgrade to a PHP 4.1.x version,
Hello Erik,
I have this hosted at my ISP. The phpinfo() shows that they have:
Linux 2.4.3
PHP Version 4.0.4pl1
Sablotron XSLT support: enabled
Which annotations are you refering to?
The odd thing is that I have copied the code from two different examples
from the web and both give me this
On Wednesday, March 13, 2002, at 06:13 PM, Edward Tanguay wrote:
Fatal error: Only variables can be passed by reference in
/home/tanguay/test/testxslt.php on line 7
when I run this code:
?php
// Allocate a new XSLT processor
$xh = xslt_create();
// Process the document, returning
I get the error:
Fatal error: Only variables can be passed by reference in
/home/tanguay/test/testxslt.php on line 7
when I run this code:
?php
// Allocate a new XSLT processor
$xh = xslt_create();
// Process the document, returning the result into the $result variable
$result =
Howdy all.
I am trying to use the new XSLT translation stuff in 4.1.1 with Win2k and
IIS running ISAPI.
When I try to run even the simplest example, I get the following error:
unknown encoding ''
62
I have tried specifying the encoding in both the XML and XSL files, and even
tried both
Hi List, XSLT seems to be such an hot topic these days now i tried it
out and i find it cool too. But is there anyway how i can make
XSLT less strict? When i make a stylesheet XSLT is too picky..I can't
make an XSLT stylesheet very fast because you have to close everything
correct etc..
When i
Hi,
I'd like to know if someone out there knows a good tutorial or
some simple examples about how to use xslt functions.
The manual says the xslt ext is in experimental phase and so
the documentation lacks of even good examples or description
of the function arguments.
I've already
OK, I found some hints in the annotated manual.
BTW, I'm looking for hearing any comments on this ...
- Original Message -
From: Papp Gyozo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 17, 2001 11:19 AM
Subject: [PHP] xslt function documentation
Hi
In [EMAIL PROTECTED], Vikram Vaswani
wrote:
There is an undocumented function in php4.0.6 that allows you
to specify an XSLT callback function for errors. You can
then create a function to parse out the error array created
by the callback function. It actually captures not only
errors but also
Hi all,
Am working with the XSLT functions in PHP. I'm trying to trap errors with
the xslt_error() functions - however, the function generates no output even
if I deliberately introduce errors into the XSLT sheet.
Same goes for the openlog() function. Any one have any ideas how I can use
these
hi,
I hope I'm asking on right place :)
I'm using xslt functions to transform xml document to html
it works perfectly, but I need to transform xml written in iso8859-2 to html
output also in iso8859-2
if I add ?xml encoding=iso-8859-2? at the beginning of xml, sablotron tells
me syntax error
I
MD Just met two bugs (?) in the xslt module.
The bugs appear to be Sablot's. Just have the same results using
sabcmd. Posting report there.
--
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
The ® is because (well I think) of the utf-8 code, try utf8_decode() to
decode it and to get it back.
P.S. What is they command that you made for php 4.0.6 to parse your xml
file, I'm not able to parse a xml file with sablotron since 4.0.6.
Maxim Derkachev wrote:
Hi all.
Just met two
Hello Francis,
Thursday, July 19, 2001, 5:43:37 PM, you wrote:
FF The ® is because (well I think) of the utf-8 code, try utf8_decode() to
FF decode it and to get it back.
Not bugs, as I know now.
xsl:output encoding='something' make the things work well.
FF P.S. What is they command that you
Here what I use xslt_process($xslString, $xmlString, $this-result);
and it give me this error
Warning: Supplied argument is not a valid XSLT Processor resource in
/home/httpd/html/xml/include/class.transform_xsl.php on line
74
Maxim Derkachev wrote:
Hello Francis,
Thursday, July 19,
Hello Francis,
Thursday, July 19, 2001, 6:05:55 PM, you wrote:
FF Here what I use xslt_process($xslString, $xmlString, $this-result);
FF and it give me this error
FF Warning: Supplied argument is not a valid XSLT Processor resource in
FF /home/httpd/html/xml/include/class.transform_xsl.php
Hi again Maxim, when this problem started I found that in the xslt php
cvs (because the manual on the php site doesn't seen to be accurate
anymore)
mixed xslt_process(resource processor,
string xml,
string xsl[,
Hello Francis,
Thursday, July 19, 2001, 6:18:58 PM, you wrote:
FF Hi again Maxim, when this problem started I found that in the xslt php
FF cvs (because the manual on the php site doesn't seen to be accurate
FF anymore)
FF mixed xslt_process(resource processor,
FF string
I have been looking around for this for all day, now I need your help.
I just compiled php 4.0.6 with those extension:
./configure --enable-track-vars --with-gd=../gd-1.8.3
--with-swf=../php4-swf --with-mysql --enable-xslt
--with-xslt-sablot=../Sablot-0.60 --with-apxs
Hi all,
I was curious if anyone was aware of a XSLT compiler that outputs PHP
source? XSLTC which Sun donated to Apache Foundation creates Java source and
is part of the Xalan project. Java is slow and we are all PHP here.
Thanks!
Sincerely,
Steven Roussey
Network54.com
I'm building an XSLT style sheet for a web site, and part of it
revolves around the fact that sometimes a group of TD will be
highlighted and the rest of the time they will be a standard
background colour. In the example below, if the XML data that
matches primary, is equal to 1, than i want
sablotron seems to be converting br/ to br is this normal? its not valid
XHTML.
index.xsl
?xml version='1.0' encoding='utf-8'?
xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xsl:output method='html' indent='yes' encoding='utf-8' /
xsl:template match='/menu'
test.xml
results
match
count1/count
name:PHatCat/name
linkhttp://freshmeat.net/projects/phatcat//link
descriptionA PHP CueCat Decoder./description
dateOct 9th 2000/date
categoryWeb/Applications/category
licenseGPL/license
/match
match
count2/count
nameAbout Me/name
In my experience this is caused by an error in your .xsl... not exactly
the most verbose error so I don't know what's actually happening here.
-jm
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 5:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP
Javier Muniz wrote:
In my experience this is caused by an error in your .xsl... not exactly
the most verbose error so I don't know what's actually happening here.
-jm
Yup, it is, to correct this, place the following function in your xslt
document::
function report_xslt_error($parser,
84 matches
Mail list logo