[PHP] passing content of file as argument

2003-02-20 Thread William S.
I would like to pass the content of ./doc_test2.xml as an argument. How would I alter the file below to accomplish this? Do I need to change the stylesheet as well? begin *.php ?php $xml = ./doc_test.xml; $xsl = ./doc_test.xsl; $mydata = ./doc_test2.xml; $arguments = array();

Re: [PHP] passing content of file as argument-SOLVED-

2003-02-20 Thread William S.
Please disregard the previous post. I figured it out. On Thu, Feb 20, 2003 at 04:24:00PM +0100, William S. wrote: I would like to pass the content of ./doc_test2.xml as an argument. How would I alter the file below to accomplish this? Do I need to change the stylesheet as well? -- Bill

[PHP] Document(),passing argument

2003-02-19 Thread William S.
I am trying to get document() to work when the content of an xml file is passed as an argument using Sablotron. My goal is to apply this method to bringing in several xml files to the stylesheet. Below is the test situation. Can anyone see where I am going wrong? --- begin doc_test.php --- ?php

[PHP] Segmentation fault with Sablotron xslt_process()

2002-07-17 Thread William S.
I am getting random Segmentation faults when I use the following script. This does not happen when I run scripts that do not include the xslt_process() So I am assuming it has something to do with Sablotron and xslt. Below is also the back trace with the problem. Can anyone suggest a solution or

[PHP] select multiple within for-each

2002-07-15 Thread William S.
This works OK with creating buttons but is not what I want. POST/INPUT xsl:for-each select=. . . xsl:sort/ form xsl:attribute name=namemyform/xsl:attribute xsl:attribute name=actionlist.php/xsl:attribute

Re: [PHP] select multiple within for-each (SOLVED)

2002-07-15 Thread William S.
Please disregard the previous posting I made. I figured it out. On Mon, Jul 15, 2002 at 10:52:23AM +0200, William S. wrote: This works OK with creating buttons but is not what I want. POST/INPUT xsl:for-each select=. . . xsl:sort/ form

[PHP] html entry within XML database

2002-07-13 Thread William S.
I am experimenting with using an XML file as a database. One of the things I do is provide a way of adding records to the database by an html form. This seems to work out well so far unless one of the fields in a record contains an html reference. The result is a Sablotron parse error. What is

Re: [PHP] svg graphics and php : is it possible

2002-07-03 Thread William S.
Perhaps this relates to the original question as an additional feature. What would be the best way to offer SVG content from the main opening page? Since SVG requires a browser that has the approprite plugin or a dedicated browser, is it better to create a hyperlink or maybe have the SVG

[PHP] using xsl:value-of select within form

2002-07-03 Thread William S.
I am able to do this: xsl:for-each select=alot of stuff form name=myform action = http:path to somewhere.php method=post input type=submit name=insert value=Boston//form /xsl:for-each But would like to do something like this: xsl:for-each

[PHP] imageellipse not working with gdlib2.0

2002-06-30 Thread William S.
Maybe I am just doing it incorrectly but I am unable to get anything displayed with imageellipse in gdlib2.0. Can anyone give me a simple php script to test it with? I am using php with Sablotron. Thank you. -- Bill Amsterdam, NL -- PHP General Mailing List (http://www.php.net/) To

[PHP] gdlib list or galleries?

2002-06-27 Thread William S.
Is there a mailing list just dedicated to gdlib or any places that show a gallery with examples? I would be interested in seeing examples of images that are complex/artistic and beyond simple rectangles and boxes. -- Bill Amsterdam, NL -- PHP General Mailing List (http://www.php.net/) To

[PHP] appending to XML file before closing tag

2002-06-25 Thread William S.
This works pretty well to append content to an XML file. However, I need to keep the closing tag where it belongs: at the end of the file. This only appends to the end and doesn't work. I use ... $myecho = Hello World; $file_name = file.xml; $file_pointer = fopen($file_name, a);

Re: [PHP] appending to XML file before closing tag

2002-06-25 Thread William S.
Yes, that worked. Nice and effective solution. Thank you. On Tue, Jun 25, 2002 at 09:51:21AM -0400, Erik Price wrote: snip If you know for a fact that the ending tag for each file is consistent and always that same tag, here's an idea. Determine or specify the length of the ending tag

[PHP] Stylesheet to query an xml file

2002-06-12 Thread William S.
I am looking for an example or an explanation of how to set up a stylesheet so it will enable a user to query content in an XML file. For instance. Have an XML file with names and addresses and the user would be able to search for a name and get back a list of matches. This would need to work

[PHP] Running PHP script within stylesheet?

2002-06-10 Thread William S.
Sorry, perhaps I should have been a bit more specific. Here is my *.php file. I want the hello world script to output to the Right Menu table on my web page: http://213.84.71.105/ . ?php $xml = ./test.xml; $xsl = ./test.xsl; $_parser = xslt_create(); if( !$result = xslt_process( $_parser,

[PHP] Can a php script be placed within a stylesheet?

2002-06-10 Thread William S.
Can a php script be put within a stylesheet and work properly? If so, how? For instance, this script put inside an XSL stylesheet file: ?php $myvar = Hello World; echo $myvar; ? Then it is transformed into html via Sablotron. -- Bill

[PHP] Running PHP script within stylesheet?

2002-06-09 Thread William S.
I am very new to PHP, Sablotron, XSLT, and MySql. Right now I have created a web page that is the result of a transformation (through php) of an xsl and xml file. What I would like to do is run a PHP script so that the result is displayed within a table on my web page. How do I do this? Here is

Re: [PHP] Sablotron broken in 4.2.1 ?

2002-06-08 Thread William S.
Thank you for the feedback. Sablotron is running fine now. Just had to do some modifications with my *.xsl file. Here is what I have going now with the implementation: http://213.84.71.105/ On Tue, Jun 04, 2002 at 10:57:45AM +1000, Tom Rogers wrote: hi I am using 4.2.1 and it works fine, I

[PHP] Sablotron broken in 4.2.1 ?

2002-06-03 Thread William S.
Is Sablotron broken in 4.2.1 because none of the transformations have worked that I have tried. I am using: php 4.2.1 apache_1.3.24 expat-1.95.2 my files are: 'wget http://213.84.71.105/news.xml' 'wget http://213.84.71.105/news.xsl' 'wget http://213.84.71.105/news.php'