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 t
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-tp2017
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 contex
>> cashed.
>
> Your xslt files are source code, 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
>
>
&g
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 xs
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 Guthr
p://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-tp20173225p20174548.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
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 t
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
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. EX
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 source[1
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, Xerces,
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
> 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: http://www.php
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
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("", $xml);
$tournaments = array
$xml = "blah balh blah";
$tournaments = explode("", $xml);
$tournaments = array_slice($tournaments, 0, 3); //maybe 4
$xml = implode("", $tournaments);
$xml .= "\n";
"Crude, but effective Captain" -- Spock
On Wed, May 3, 2006 5:40 am, Dave Goodchild wrote:
> Hi all, maybe slightly off list but
> Thank you very much for your generous and prompt help. The stylesheet I am
> now using looks like this:
>
>
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
>
>
>
> Results of XSL transformation
>
> @import url(games_output.css);
>
>
Thank you very much for your generous and prompt help. The stylesheet I am
now using looks like this:
http://www.w3.org/1999/XSL/Transform";>
Results of XSL transformation
@import url(games_output.css);
> And I used this:
>
>
>
>
>
>
> Tid select="tid" />
> Type />
> Game select="game" />
> Buy-In$ />
> Status select="state" />
>
And I used this:
Tid
Type
Game
Buy-In$
Status
Players
Date / Time
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 slightl
> 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:
>
>
>
> 10035522
> Texas Holdem
> Texas Holdem Poker
> 5
> 0.5
> USD
> Running
> 110
> Normal NL 1
>
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:
10035522
Texas Holdem
Texas Holdem Poker
5
0.5
USD
Running
110
Normal NL 1
Regular
No Limit
2006-04-24T07:00:00
Hi
Can anyone help me with this issue?
http://marc.theaimsgroup.com/?l=php-general&m=113456345526736&w=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:
Username:
";
} else {
echo "";
}
echo "";
>
Would anyone happen to know why this is happening?
I'm using xmlproc from libxslt-1.1.11.
Thanks,
Mike
original XML input:
Username:
";
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
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:
What I h
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 ([EMAI
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 worki
Hi,
In php5.0.0 I can use next select syntax:
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
Warning: XSLTProcessor::transformToDoc() [function.transformToDoc]: runtim
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:
And this doesn't:
Seems to me the < gets interp
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 pa
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:
Hello, world!
hello.xsl:
http://www.w3.org/1999/XSL/Transform";
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:
'USletter',
'page.orientation' => 'portrait',
);
$html = xslt_process($xslt, $xml, $xsl, NULL, $args,
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
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
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
after
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
:
Where can i change it, or desactivate it ?
thanks
Hatem
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.
http://my.host.org/foo.dtd";>
When I have xslt_process() attempt to transform the XML document, with an
XSL document I provi
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:
Then in the stylesheet do this (The parameter must be defined before any
template is declared):
http://www.w3.org/1999/XSL/Transform";>
Your html page
This will print "parameter_to_pass" to the browser
On Tue, 2002-09
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 '3'
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 unsu
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 fi
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 = "";
$xsltArgs = array( '/_xml' => $xmlStr );
$xp = xslt_create();
$result = xslt_process( $xp, 'arg:/_xml'
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 = xslt_
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> http://www.php.net/manual/en/re
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:
http:
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
e:\wwwroot\newsite.
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");
$head->s
terminate.
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
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
-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,
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 is
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 v
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 same
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:
>
>
> // Allocate a new XSLT processor
> $xh = xslt_create();
>
> // Process the document, returnin
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:
\n";
print "\n";
print $result;
print "\n";
}
else {
print "Sorry, sample.xml could not be transformed by sample.xsl into";
print " the
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
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 de
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]
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 r
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 als
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 t
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 at the beginning of xml, sablotron tells
me "syntax error"
I have sablotron 0.60; ic
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> strin
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: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.p
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, 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.
make the things work well.
FF> P.S. What is they command that you made for php 4.0.6 to parse
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
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
www.b
Hi all.
Just met two bugs (?) in the xslt module.
1st. I replace HTML entities in the CDATA parts with their ascii
equivalents ('<' -> '<', '>' -> '>', etc.)
After XSLT transformation, '<' went back to '<', while any other
remain untouched.
2nd. After the transformation, are substituted with
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
http://network54.com/?p
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
--enable-sablot-err
I'm building an XSLT style sheet for a web site, and part of it
revolves around the fact that sometimes a group of 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 to is this normal? its not valid
XHTML.
index.xsl
--
Chris Lee
Mediawaveonline.com
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
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($pars
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]
Sub
test.xml
1
:PHatCat
http://freshmeat.net/projects/phatcat/
A PHP CueCat Decoder.
Oct 9th 2000
Web/Applications
GPL
2
About Me
http://freshmeat.net/projects/aboutme/
A system for recording/sharing preferences
Apr 18th 2000
Web/Tools
GPL
test.xsl
http://www.w3.org
85 matches
Mail list logo