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

RE: Sablotron and PHP

Subject: RE: Sablotron and PHP
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 14 Nov 2003 08:55:36 -0000
php sablotron custom xslt function
> Fair enough.  Then, mostly for the benefit of anyone 
> searching the archives, I'll just say: a number of 
> limitations of XSLT and XPath 1 can be overcome by use of 
> scheme handlers if you're using PHP's XSLT functions via the 
> Sablotron engine.  The relevant function is 
> xslt_set_scheme_handlers; it enables you to create custom 
> functions to handle the document() function.  Some ideas I've 
> had since I stumbled across it:
> 
> - document('sql:SELECT * FROM mytable') to run an SQL query 
> inside an XSLT stylesheet
> - document('exists:myfile.xml') to see if a file exists
> - document('calc:(-b+sqrt(4*a*c))/(2*a)') to perform 
> arbitrary calculations
> - document('seq:A-Z') to generate a sequence of letters or numbers
> 
> ... but basically the sky's the limit.

Isn't this essentially the same as the URIResolver in the JAXP
interface?

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.