[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT arguments in PHP 5

Subject: RE: XSLT arguments in PHP 5
From: "Buchcik, Kasimier" <k.buchcik@xxxxxxxxxxxx>
Date: Wed, 21 Jun 2006 19:08:38 +0200
buchcik
Hi,

Great!

Someone raised a similar question some weeks ago; it seemed
like there was no way to pass node trees into PHP 5.
Can this stream-based mechanism be tweaked to allow for passing
node trees as well, or is it restricted to in-memory XML documents?

Regards,

Kasimier

> -----Original Message-----
> From: Martynas Jusevicius [mailto:martynas.jusevicius@xxxxxxxxx]

> Thanks for trying, but I finally managed to get stream-based solution
> working :) Thanks to this:
> http://alexandre.alapetite.net/doc-alex/xslt-php4-php5/xslt-ph
> p4-to-php5.php.txt
>
> On 6/21/06, Buchcik, Kasimier <k.buchcik@xxxxxxxxxxxx> wrote:
> > Hi,
> >
> > > -----Original Message-----
> > > From: Martynas Jusevicius [mailto:martynas.jusevicius@xxxxxxxxx]
> >
> > > Well, I want to pass dinamically formed XML as side-documents
> > > for my stylesheet.
> > >
> > > In PHP4's processing function there was an option of passing such
> > > arguments and later accessing them through
> Sablotron-specific scheme
> > > "document('arg:/...)".
> >
> > Ah. This can be made workable with Libxslt/Libxml2.
> >
> > > I'm looking for an alternative in PHP5. Are saying it is not
> > > possible yet? :/
> >
> > I don't know if it's currently possible with PHP 5. I can only
> > provide info about Libxml2's side. So others will be of
> more help here.
> >
> > > Quoting Zend: "All the XML extensions now support PHP streams
> > > throughout, even if you try to access a stream not
> directly from PHP.
> > > <...> Basically, you can access a PHP stream everywhere
> where you can
> > > access a normal file."
> > > So I thought I might implement my own stream wrapper and
> use it with
> > > document(). I have no luck here though.
> >
> > [...]
> >
> > Cheers,
> >
> > Kasimier

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.