Re: [PHP] XSLT issue

2006-05-04 Thread Dave Goodchild
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

Re: [PHP] XSLT issue

2006-05-04 Thread Richard Lynch
$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

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
> 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); > >

Re: [PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
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);

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
> And I used this: > > > > > > > Tid select="tid" /> > Type /> > Game select="game" /> > Buy-In$ /> > Status select="state" /> >

Re: [PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
And I used this: Tid Type Game Buy-In$ Status Players Date / Time

Re: [PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
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

Re: [PHP] XSLT issue

2006-05-03 Thread T.Lensselink
> 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 >

[PHP] XSLT issue

2006-05-03 Thread Dave Goodchild
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